Lesson 4 of 4 · 6 min
Your router and NAT
Why every device in your home can be online at once through a single public address, and what that arrangement does and does not protect you from.
Look up your own public IP address, and every device on your home network, phone, laptop, smart speaker, will show the same number. Look at what each device thinks its own address is, and you will find something different: a private address like 192.168.1.12, from the ranges RFC 1918 reserves for local networks, covered in the first lesson of this course. The device that bridges the two is your router, using a technique called Network Address Translation, or NAT.
What NAT actually does
MDN’s glossary defines it plainly: NAT “is a technique for letting multiple computers share an IP address”, by “assigning unique addresses to each computer on the local network and adjusting network traffic to send data to the right place.” Concretely, when your laptop opens a connection to a website, the router rewrites the outgoing packet so it appears to come from the router’s own public address, and keeps a table linking that connection back to your laptop’s private address and port. When the reply arrives, the router looks it up in that table and forwards it to the right device.
This is why NAT exists at all: IPv4’s roughly 4.3 billion addresses were never going to stretch to a public address for every phone, laptop and smart device in every household, and internet providers generally hand a home only one public address. NAT lets a household of a dozen devices share that single address without each one needing its own.
What NAT does for you, incidentally
NAT was built to solve an address shortage, not to secure your network, but it has a useful side effect. Because devices behind it only have private addresses, a computer on the open internet cannot simply open a new, unsolicited connection to your laptop the way it could if your laptop held a public address directly: there is no public address for it to reach, and the router has no matching entry in its translation table to forward that connection to. Traffic your own device requested is let back in because the router remembers the request; traffic nobody asked for generally has nowhere to go.
What NAT does not do
That incidental filtering is not the same as security, and it is worth being precise about the difference:
- NAT does nothing about connections your own devices open outward. If an app on your laptop connects to a server, NAT happily lets the reply back in; it has no opinion on whether that app should have been talking to that server in the first place.
- NAT does not inspect or encrypt content. Anything sent in the clear is just as readable to the sites and networks in between as it would be without NAT.
- NAT is not a substitute for a firewall. Many routers run a stateful firewall alongside NAT, and it is that firewall, tracking the handshake described in the previous lesson, doing the actual job of deciding what to allow.
- Devices sharing one public address can still be told apart individually by other means, such as accounts, cookies or device identifiers used by the sites they visit.
In short: NAT is why your whole household shares one address, and, as a side effect, why random inbound connections generally cannot reach a specific device inside your home uninvited. It says nothing about what your own devices choose to send out, or about anyone downstream of your own outgoing connections.
Key takeaways
- NAT lets many devices on a private network share one public IP address, rewriting and tracking connections as they pass through the router.
- NAT exists mainly because IPv4 does not have enough addresses for every device to have its own public one.
- As a side effect, NAT makes it hard for an outside device to open an unsolicited connection directly to one of your devices, since there is no public address pointing to it.
- NAT does not inspect, filter or encrypt the traffic your own devices send out; that is a firewall’s job, not NAT’s.
- Sharing a public address does not make individual devices anonymous to the sites they connect to.
Check yourself
1. According to MDN, what does NAT do?
- Encrypts all traffic leaving the router
- Lets multiple computers share an IP address by translating traffic to the right local device — Right.
- Assigns a unique public IP address to every device
- Blocks all incoming connections automatically
MDN describes NAT as a technique for letting multiple computers share an IP address by adjusting traffic so it reaches the right device.
2. Why do home routers typically use NAT?
- To make Wi-Fi faster
- Because IPv4 does not have enough addresses to give every household device its own public one — Right.
- Because it is required for encryption
- To block phishing websites
IPv4’s roughly 4.3 billion addresses are not enough for every device worldwide to hold a public one, so NAT lets a household share a single address from its ISP.
3. Which statement about NAT and inbound connections is accurate?
- NAT actively scans and blocks malicious traffic
- Because devices behind NAT have no public address, an outside device generally cannot open a new, unsolicited connection directly to them — Right.
- NAT makes every device on the network invisible to the websites it visits
- NAT prevents your own apps from ever connecting outward
NAT’s translation table only forwards replies to connections your own devices requested; there is no public address for an outsider to target directly.
4. What does NAT NOT protect against?
- Content your own device sends over a connection it opened, including anything unencrypted — Right.
- IPv4 address shortages
- The need for a router to translate addresses
- Multiple devices sharing one public address
NAT has no visibility into or control over what your own device chooses to send out; it only translates and tracks addresses, it does not inspect or protect content.
Do it with FireAI
Put this lesson into practice on your own Mac.
- Find out where an app sends data, on the World map — See exactly which company and country one app is quietly talking to.
- Rules: app, website, domain, IP or a range, forever or until you restart — Write a rule as precise as one address or as broad as an entire domain.
- Deep inspection, without decrypting anything — Get real detail on a secure connection without FireAI ever reading what’s inside it.
Sources
- RFC 1918: Address Allocation for Private Internets
- MDN Web Docs: NAT (Glossary)
- Cloudflare Learning: What is my IP address?
Put it into practice on your Mac
Try every feature free for 17 days, no card needed.