Same Subnet Checker

Are two IPv4 addresses on the same subnet? Enter the address and mask for Device A and Device B to compare how each one sees its local network.

Free forever All calculations happen in your browser. The IPv4 addresses you enter stay on this page and are never sent to our server.

Device A

Find this in the device's network settings.

Enter a prefix such as /24 or a mask such as 255.255.255.0.

Device B

Find this in Device B's network settings or documentation.

Enter /24 or 255.255.255.0.

Examples

This calculator needs JavaScript, which is turned off in your browser. When it runs, the math happens on this page and nothing is sent anywhere.

How the check works

Each side decides on its own whether the other is local.

Each device uses its own subnet mask to decide whether another IPv4 address is on-link. On-link traffic can be sent locally; other traffic requires a suitable route or gateway. Both sides make this decision independently.

For example, Device A at 192.168.1.50/24 and Device B at 192.168.0.108/24 are in different subnets. Device A's local range is 192.168.1.0-192.168.1.255, which does not include Device B.

Change Device A's mask to /16, and Device A considers Device B local. Device B still considers Device A outside its own /24 range. That is an asymmetric configuration; direct two-way communication cannot be assumed.

Need the full range for one address? Use the Subnet Calculator.

Questions

Does "Same subnet" mean two devices can communicate?

No. It means the numbers allow a direct connection. The cable, switch, VLAN, firewall, and the device itself still have to cooperate. Test with ping or the device’s own software.

Is the example address safe to use?

It’s arithmetic only: a usable address in the device’s range that isn’t the device’s address. This page can’t see which addresses are taken, so check that nothing else on the network already uses it.

What if the masks differ but both sides are on-link?

A direct conversation often works, but the two sides disagree about where the network ends, which causes trouble with other hosts and broadcasts. Use the mask the site documents on both.

Does this page contact devices or change network settings?

No. It only compares the numbers you type. It doesn’t ping, scan, or change any setting, and it doesn’t talk to the IP Flip app.