Guides

What Is Network Address Translation (NAT)? A Plain-English Guide

NAT is the quiet translator inside your router. It rewrites private addresses to one public address so a whole home or office can share a single internet connection.

Cysoro Security TeamPublished · 8 min read
ROUTER GUIDES Networkaddress One public IP, many devices.
Quick answer

Network address translation (NAT) is a method used by routers and firewalls to rewrite IP addresses in packets as they travel between networks. It lets many devices with private addresses, such as 192.168.1.20, share one public IP address to reach the internet, which conserves the limited supply of public IPv4 addresses.

Key takeaways

  • NAT rewrites private IP addresses to a public address so many devices can share one internet connection.
  • Most home routers use PAT, which also changes port numbers to tell replies apart.
  • NAT hides internal addresses, but it is not a firewall and does not replace encryption or authentication.

Your laptop, phone, TV and printer all reach the internet, yet your internet provider probably gave you only one public IP address. Network address translation is the quiet trick that makes that possible, and it sits inside almost every router you have ever used.

What is network address translation?

Network address translation, or NAT, is a method routers use to rewrite the IP addresses in packets as they pass between two networks. It lets devices on a private network share one public IP address when they talk to the internet.

Your devices use private addresses that only have meaning inside your network, such as 192.168.1.20. Those addresses are defined in RFC 1918, which reserves three ranges for private use: 10.0.0.0 to 10.255.255.255, 172.16.0.0 to 172.31.255.255, and 192.168.0.0 to 192.168.255.255. No device on the public internet can route a reply to one of those addresses, because millions of networks use the same ones.

So your router steps in. When a packet leaves your network, the router replaces the private source address with its own public address.

Cisco explains that NAT operates on a device connecting two networks, translating private addresses into global routable addresses before packets are forwarded. When the reply comes back, the router looks up its translation table and forwards the packet to the right device. Cisco describes NAT as designed for IP address conservation, letting private networks that use unregistered addresses connect to the internet.

How does NAT work?

NAT works by keeping a translation table. Every outgoing connection gets an entry that records the private address and port, the public address and port, and the destination, so replies can be matched and delivered.

How NAT translates one request Your laptop192.168.1.20port 52341 Router (NAT)public: 203.0.113.8port 61002 Website93.184.216.34port 443 1. Laptop sends a request from 192.168.1.20:52341 2. Router rewrites it to 203.0.113.8:61002 and records the mapping 3. Reply returns to 203.0.113.8:61002, and the router forwards it to the laptop
One NAT translation, step by step. The website only ever sees the public address. Illustration by Cysoro.

The steps are simple, and they happen for every connection:

  1. Send. A device on the private network sends a packet to an internet server. The source is its private address and a source port.
  2. Translate. The NAT router replaces the private source address with its public address, often changing the source port too, and records the mapping in its table.
  3. Reply. The server replies to the public address and port, because that is all it ever saw.
  4. Deliver. The router looks up the mapping and forwards the reply to the correct private device.

If no mapping exists for an incoming packet, the router normally drops it. That is why a device behind NAT cannot usually be reached directly from the internet unless you add a rule, such as port forwarding.

What are the main types of NAT?

The main types are static NAT, dynamic NAT, PAT (also called NAT overload), and port forwarding. They differ in how many public addresses they use and whether mappings are fixed or temporary.

TypeMappingPublic addresses neededTypical use
Static NATOne private address to one public address, permanentOne per deviceA server that must be reachable from outside
Dynamic NATPrivate addresses mapped to a pool of public addresses as neededA pool, smaller than the device countOffices with several public addresses
PAT / NAT overloadMany private addresses to one public address, using different portsOneHome routers and small offices
Port forwardingOne public port to one private device and portOne, sharedGame servers, cameras, home servers
Carrier-grade NATMany customers share public addresses at the providerShared across customersInternet providers short on IPv4 addresses

Static NAT

Static NAT creates a fixed one-to-one mapping. A private address such as 192.168.1.10 always appears as the same public address, so outside systems can reach it reliably. It is the right choice for a mail server or web server, but it uses one public address per device, so it does not conserve addresses.

Dynamic NAT

Dynamic NAT draws from a pool of public addresses. When a device starts a connection, it gets a public address from the pool; when the connection ends, the address returns to the pool. This works when fewer devices are online at once than the pool size, but a device can get a different public address next time.

PAT and NAT overload

PAT is the type you almost certainly use at home. It maps many private addresses to a single public address by assigning each connection a unique port number. Your laptop, phone and TV can all browse at once, and the router tells their replies apart by port. PAT is also called network address and port translation, or NAPT.

Port forwarding

Port forwarding is a manual rule, not a separate NAT type. You tell the router that traffic arriving on a chosen public port should go to a specific device and port inside your network. It is useful for hosting a game server, but every forwarded port is a door into your network, so only forward ports you need and keep the service updated.

What is the difference between a private and a public IP address?

A private IP address only works inside a local network, while a public IP address is globally unique and routable on the internet. Your router holds the public address; your devices hold private ones.

You can see this yourself. Check the address your device reports, then compare it with the address the internet sees. If they differ, NAT is in between. Our what is my IP tool shows the public address the internet sees for your connection.

FeaturePrivate IP addressPublic IP address
Range10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 (RFC 1918)Any other routable IPv4 address
Unique?No, reused in millions of networksYes, globally unique
Routable on the internet?NoYes
Assigned byYour router, usually by DHCPYour internet provider
Example192.168.1.20203.0.113.8

IPv4 has about 4 billion addresses in total, and that supply ran out years ago for new allocations. NAT is the main reason the internet kept growing on IPv4 despite that limit. IPv6, with vastly more addresses, removes the need for this sharing, but most networks still run IPv4 behind NAT today.

Is NAT a firewall?

No, NAT is not a firewall, although the two often run on the same box. NAT rewrites addresses; a firewall inspects traffic and decides what to allow or block based on rules you set.

The confusion is understandable. Because dynamic NAT and PAT drop incoming packets with no matching translation, they block unsolicited connections from the internet by default. That looks like protection, and it does reduce exposure, but it is a side effect, not a security policy. It does nothing against malicious traffic you invite in, such as a phishing link you click, a malicious download, or a forwarded port pointing at a vulnerable service.

For real protection, use both: NAT for address sharing, and a firewall with explicit rules for what is allowed. Keep your router firmware updated, change the default admin password, and turn off remote administration unless you need it. Our guide to how to secure your Wi-Fi covers the router settings that matter most.

NAT vs firewall: different jobs NATRewrites addressesShares one public IPTracks connectionsGoal: connectivity FirewallInspects trafficAllows or blocks by ruleLogs suspicious activityGoal: security Most routers run both. NAT alone is not a security control.
NAT handles addressing; a firewall handles access decisions. Illustration by Cysoro.

What problems does NAT cause?

NAT breaks the internet's original end-to-end design, and that causes real problems. Two devices behind different NAT routers cannot easily connect directly to each other, which affects peer-to-peer apps, gaming, video calls and some VPNs.

Common NAT problems include:

  • Hosting is harder. You need port forwarding or a relay service to accept incoming connections, and carrier-grade NAT may make port forwarding impossible at all.
  • Some protocols break. Protocols that embed IP addresses inside their data, such as older FTP and SIP, need special handling (application-layer gateways) to work through NAT.
  • Troubleshooting is harder. Many devices share one public address, so logs on the far side only show the router, not which device did what, unless the router logs its translations.
  • Double NAT. Two routers in a row, each doing NAT, can cause slow connections, failed voice calls and strict NAT warnings in games. The fix is usually to put one router in bridge mode.
  • Shared reputation. If one device behind a shared public address sends spam or attacks, the whole address can be blocklisted, affecting everyone sharing it.

If online gaming reports a strict NAT type, or a video call keeps dropping, check whether you have double NAT first. Connect your second router as an access point, or enable bridge mode on the provider's modem, and test again.

Does NAT make you anonymous or safe?

NAT hides your internal addresses from the internet, but it does not make you anonymous. Websites still see your public IP address, and your provider knows which customer holds it.

NAT also does not encrypt anything. Anyone who can observe your traffic can still see unencrypted data, and a malicious website can still attack your browser. Use HTTPS, keep software updated, and use strong passwords and multi-factor authentication. CISA's core advice is to recognize and report phishing, require strong passwords, turn on multi-factor authentication, and update software.

Think of NAT as a receptionist who forwards your mail: useful, and it keeps your extension number private, but it is not a lock on the door. For privacy on public networks, a VPN is a separate tool with a different job, and it still does not replace the basics.

What happens to NAT with IPv6?

IPv6 was designed to end the address shortage, so NAT is largely unnecessary there. Every device can have its own globally unique IPv6 address, and connections can be end-to-end again without translation.

Most networks run dual-stack today: IPv4 behind NAT for compatibility, and IPv6 alongside it where available. Some providers use NAT64 to let IPv6-only devices reach IPv4 services. You do not need to configure any of this yourself in most cases; your router and provider handle it. If you are setting up a new network, plan for IPv6 rather than building more layers of IPv4 NAT.

To check what your connection looks like from the outside, run our DNS lookup tool on a domain you use, and confirm your public address with the IP tool linked above. If your provider uses carrier-grade NAT, you may find port forwarding does not work, and the fix is to ask for a public address or use a relay service.

The bottom line

NAT is the reason a whole household can share one internet connection. It swaps private addresses for a public one on the way out, and routes replies back to the right device, using ports to tell connections apart.

Remember its limits: NAT conserves addresses and hides your internal layout, but it is not a firewall, not encryption, and not anonymity. Keep your router updated, forward only the ports you need, and pair NAT with the security basics. You can start by checking the address the internet sees with our free what is my IP tool.

Frequently asked questions

What is network address translation in simple terms?

NAT is a translation step inside a router. Devices on a private network use addresses that only work locally, and the router swaps in its public address before sending traffic to the internet, then swaps the reply back to the right device.

Why do we need NAT?

There are only about 4 billion IPv4 addresses, and far more devices than that. NAT lets a whole home, office or campus share one public IPv4 address, which stretches the supply while IPv6 adoption continues.

Is NAT the same as a firewall?

No. NAT changes addresses, while a firewall decides which traffic is allowed. Dynamic NAT and PAT often block unsolicited inbound connections as a side effect, but that is not a security policy, so you still need a firewall.

What is the difference between static NAT and dynamic NAT?

Static NAT maps one private address to one public address permanently, which suits servers that must be reachable from outside. Dynamic NAT maps private addresses to a pool of public addresses as needed, and the mapping changes over time.

What is PAT or NAT overload?

PAT, also called NAT overload, maps many private addresses to one public address by giving each connection a different port number. It is the type almost every home router uses, and it is why dozens of devices can share one public IP.

What is port forwarding?

Port forwarding is a manual NAT rule that sends traffic arriving on a specific public port to a chosen device and port inside your network. It is how you expose a game server, camera or web server behind NAT, and each open port increases your attack surface.

Does NAT slow down my internet?

Usually not in a noticeable way. Modern routers translate addresses in hardware, so the delay is tiny. Very old or underpowered routers, or huge numbers of simultaneous connections, can add latency or drop sessions.

Do I still need NAT with IPv6?

Mostly no. IPv6 has enough addresses for every device to have its own public address, so address conservation is unnecessary. Some networks still use IPv6 NAT for policy reasons, but it is not the default design.

Sources

  1. RFC Editor — RFC 1918: Address Allocation for Private Internets
  2. Cisco — Configuring Network Address Translation
  3. F5 — Network Address Translation (NAT)
  4. CISA — Cybersecurity Awareness Month Toolkit
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against RFC 1918, Cisco NAT configuration documentation and F5's NAT glossary.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free