When I visit some Web sites that display your IP address, it correctly identifies mine and not that

When I visit some Web sites that display your IP address, it correctly identifies mine and not that

When I visit some Web sites that display your IP address, it correctly identifies mine and not that of my router. Why is this when I am operating in NAT (gateway) mode?

    Requires Free Membership to View

    By submitting your registration information to SearchNetworking.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchNetworking.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

This is definitely not a wireless questions, but I'll happily give you a hand.

For those out there unfamilar with NAT, NAT (Network Address Translation) is a protocol that allows machines operating in one subnet (eg 192.168.1.0 subnet mask 255.255.255.0) to be converted to a public address so that people on the

If a machine with a private IP address (eg. 192.168.0.1) was connected directly to the internet it would not function correctly. The way the communication works is that information sent from the private IP address would reach its destination however when the destination attempted to reply to the private IP it would send the packet to one of the Internet Core Routers. Internet Core Routers are responsible for keeping location/routing information for all known IP ranges however they are also away that 192.168.0.1 is a private IP address. The packet would then be dropped as no legitimate route exists for private IP addresses.

As you're using NAT, when you use the Internet your router switches your private IP address for its public IP address as traffic passes through it. When you access the web page the web page sees a source IP address of your router (as its swapped the addresses) and so the web page tells you that your IP address is really the IP address of the router. The beautiful protocol means that you can put almost any IP address behind your router and not intefer with the settings as dictated by your ISP and at the same time your internet connection will continue to function no matter how you design your internal network.

This was first published in May 2004