Skip to content
BENIBIX Learn

Network Address Translation (NAT)

Infrastructure🌐 NetworkingNetwork Addresses

Also known as NAT, IP Masquerading, Port Address Translation

A trick in the router. It lets many devices share one public address.

Think of it like

It is like the front desk of a school. All the mail goes out with the school address. The desk gives each reply to the right person.

Example

Emma's phone, laptop and TV all browse at once. To the outside world, all three look like one address, the router's.

Why it matters

NAT is a big reason the internet still works on IPv4. It also hides home devices from strangers by default.

Definition

Network address translation, or NAT, swaps one IP address for another as packets pass a router. At home, all your devices have private addresses. When their packets go out, the router puts its one public address on them. It keeps a table of who asked for what. When answers come back, it hands each one to the right device.
NAT happens in the router. Private addresses go in, and one public address comes out.

Common mistake

Treating NAT as a firewall. It blocks unasked traffic as a side effect, not by rule, so a real firewall is still needed.

Key takeaways

  1. 1
    Swaps addresses. Private inside, public outside.
  2. 2
    Keeps a table. It remembers who asked.
  3. 3
    Shares one. Many devices, one public address.

Learn it properly