How do I know if two computers are on the same subnet?

the entire Internet is made up of countless subnets, and when you enter an address from a browser and go back to access resources on another computer, the first step is DNS parsing to get the ip address of another computer.

at this point, the first thing you will do is to determine whether the visited computer is in the same subnet as the visiting computer, so how to determine whether the two computers are in the same subnet?


my understanding: those within the same address range belong to the same subnet and can only be accessed with the help of routing devices.

The

address field consists of a base address + mask, for example, 192.168.1.2 and 192.168.1.3 belong to the same subnet 192.168.1.0 strong 24 .
however, not when they need a route to arrive, such as your computer 192.168.1.224 and my computer 192.168.1.324 .


ipconfig or IP set up your ip address and subnet mask. You can know what the range of subnets is by the subnet mask.
for example, 255.255.255.0, then the subnet range is x.x.x.x/24.
then compare the two IP addresses.
in the case of x.x.x.x/24, the first three segments are the same, so they are in the same subnet and do not need to cross the gateway.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-7b95b4-15a35.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-7b95b4-15a35.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?