maxdraco

NAT (and hairpin NAT)

Network address translation: how a router lets many devices share one public internet address.

Concept Networking

NAT (network address translation) is what a home Router does so that every device in the house can share one public IP address: it rewrites the addresses on outgoing traffic and remembers which reply belongs to which device. A side effect is that outsiders can’t start a connection to a device inside unless a port forward allows it. Hairpin NAT is the trick that lets a device inside reach the network’s own public address and loop back in, so testing from inside doesn’t show what the internet sees.

See also

  • Router A device that passes traffic between separate networks, such as a home network and the internet.
  • IP address (IPv4/IPv6) The number that identifies a device on a network so that traffic can be delivered to it.
  • Port forwarding Passing connections that arrive on a port of one machine on to a port on another.
  • Access point (Wi-Fi) The device that broadcasts a Wi-Fi network and connects wireless devices to the wired network.
  • ARP Address Resolution Protocol: how a device on a local network finds the hardware address that goes with an IP address.
  • Captive portal The sign-in or terms page a public Wi-Fi network shows before it lets you onto the internet.
  • Cisco US company that makes networking equipment such as switches, routers and firewalls.
  • Client (client-server) A program that connects to a server to ask it for something.

Sources

  1. RFC 2663: IP Network Address Translator (NAT) Terminology and ConsiderationsIETFofficial healthy, checked 2026-11-15 archived copy
  2. RFC 4787: NAT Behavioral Requirements for Unicast UDPIETF healthy, checked 2026-11-15 archived copy
  3. Network address translationWikipedia healthy, checked 2026-11-15 archived copy