Checking whether two hosts share a subnet

Apply the same subnet mask to each address and compare the resulting network addresses. Sharing a subnet does not guarantee connectivity.

Practical example

192.0.2.10 and 192.0.2.70 are in different /26 networks but share a /24.

Try it yourself

Open the related tool and compare its output with the example above.

Browse all networking guides