Ispires, boils down to the network mask...
192.168.1.0
255.255.255.0
Any address that is on the network would be between 192.168.1.1 - 254 (0 being the network address and 255 being the broadcast address).
A packet going to 192.168.2.1 would not be within that range then the system would send it to the default gateway (if setup for one).
The tricky part is when you start subnetting.
192.168.1.0
255.255.255.248
The above conbination would give you 32 possible networks with 6 hosts (computers) per network. Your networks would be between 192.168.1.0 -254. Each network would look like this....
192.168.1.0 (network) 192.168.1.1 - 6 (computers)
So 192.168.1.2 and 192.168.1.9 would be on totally different networks (have I blown your mind yet?)
TCP/IP is hard to go into detail in this forum, suggest you take a class on TCP/IP if you want to learn more about subnetting but to answer your question....
The computer uses the subnet mask to determine if the packet stays on the network or is going to a different network.
david e
*end users are just like computers, some you can work with...others just need a simple reBOOTing to fix their problems.*