
Quick Answer
NAT changes IP address information as traffic crosses a router or gateway. Home routers usually add port translation, letting several private devices share one public IPv4 address while preserving return paths. It does not encrypt traffic, replace a firewall, or provide anonymity.
Key Takeaways
- NAT translates source or destination IP addresses at a network boundary.
- PAT distinguishes concurrent flows by translating transport ports.
- SNAT changes the source, while DNAT changes the destination.
- Double NAT adds two translation layers, while CGNAT adds a provider-controlled shared layer.
- NAT, proxies, VPNs, and firewalls solve different problems.
- Troubleshooting starts by comparing the device, router WAN, and public IP addresses.
How Do NAT Terms Differ at a Glance?
NAT is the broad term for translating network addresses. PAT, SNAT, DNAT, double NAT, and CGNAT describe specific methods, directions, or network arrangements.
| Term | What it means | Common purpose | Main limitation |
|---|---|---|---|
| NAT [Network Address Translation] | Translates one IP address to another | Connects separate address spaces | Adds state and complicates direct inbound access |
| PAT [Port Address Translation] or NAPT [Network Address Port Translation] | Translates addresses and TCP or UDP ports | Lets many private devices share a public IPv4 address | Depends on available ports and mapping capacity |
| SNAT [Source Network Address Translation] | Rewrites the source address | Sends private traffic through a public address | Return traffic must cross the same translation path |
| DNAT [Destination Network Address Translation] | Rewrites the destination address | Publishes an internal service or redirects traffic | Needs matching firewall and routing rules |
| Double NAT [Double Network Address Translation] | Sends traffic through two NAT gateways | Appears in nested router setups | Complicates port forwarding and peer connections |
| CGNAT [Carrier-Grade Network Address Translation] | Adds shared NAT inside a provider network | Conserves public IPv4 addresses across subscribers | Subscribers usually cannot control the outer mapping |
These labels overlap rather than compete. A home router can perform PAT as source NAT, while an upstream provider adds CGNAT. Knowing the exact arrangement matters more than choosing one label.
For troubleshooting, identify who controls each layer. A local router rule cannot change a mapping maintained by an upstream provider.
What Is NAT?
NAT stands for Network Address Translation. It changes selected IP address information as packets cross a router, firewall, or other gateway.
The familiar home setup connects private devices to the public internet. A laptop may use `192.168.1.25`, while websites see the router's public address. The IP address guide explains why those two addresses serve different scopes.
Traditional NAT includes two related operations. Basic NAT maps one address to another, while NAPT also maps TCP or UDP ports. RFC 3022 documents both forms.
Most home routers use NAPT, commonly called PAT or NAT overload. The port mapping lets simultaneous connections share one public IPv4 address. Many router interfaces call this behavior NAT, even when port translation is involved.
NAT is a network function, not an application protocol. Applications usually send traffic normally while the gateway performs translation along the route. Some applications still need NAT-aware behavior when they exchange address or port details.
Private addressing and NAT are related, but they are not identical. Networks can route private addresses internally without translating them. The public and private IP address comparison explains where each address type can operate.
Other forms translate traffic between IPv6 and IPv4 networks. This article focuses on IPv4-to-IPv4 NAT because it matches most home and office questions.
How Does NAT Work?
NAT works by rewriting packet headers and recording the change. The gateway uses that record to restore the correct internal destination when a reply arrives.
Consider a laptop opening an HTTPS connection. These addresses come from documentation ranges and do not represent live systems.
| Packet stage | Source | Destination | Gateway action |
|---|---|---|---|
| Before NAT | `192.168.1.25:51514` | `192.0.2.80:443` | No translation yet |
| After NAT | `198.51.100.20:62001` | `192.0.2.80:443` | Source address and port changed |
| Reply arrives | `192.0.2.80:443` | `198.51.100.20:62001` | Public mapping matched |
| Reply forwarded | `192.0.2.80:443` | `192.168.1.25:51514` | Internal destination restored |
The connection follows five steps. Together, they preserve enough information for the gateway to handle the returning traffic.
- Send: The laptop sends traffic from `192.168.1.25:51514` to `192.0.2.80:443`.
- Map: The gateway creates a mapping for that source address, port, and protocol.
- Rewrite: The gateway changes the source to `198.51.100.20:62001` and forwards the packet.
- Return: The server sends its reply to the public address and translated port.
- Restore: The gateway finds the mapping and forwards the reply to the laptop.
Rewriting an IP address or transport port also requires the gateway to adjust affected checksums. Without that update, the receiver may reject the packet as damaged.
The mapping is stored in a NAT table. An entry can contain the protocol, internal endpoint, public mapping, remote endpoint, state, and timeout. The exact fields depend on the device and its filtering behavior.
A NAT table is not a routing table. The routing table chooses a path, while the NAT table records translations. Both functions must agree for a translated packet to reach its destination.
Dynamic mappings expire rather than remaining forever. TCP state can help a gateway decide when a flow has ended. UDP usually depends more heavily on idle timers because it has no connection teardown.
Replies usually need to return through the gateway that created the mapping. If a reply takes another path, a gateway without that mapping may not know where to send it.
What Are the Main Types of NAT?
The main NAT mapping types are static NAT, dynamic NAT, and PAT. SNAT and DNAT instead describe which side of a packet changes.
Static NAT keeps a fixed mapping between two addresses. It suits services that need a predictable public mapping, but it does not conserve addresses through sharing. A firewall must still permit any intended inbound traffic.
Dynamic NAT selects an available public address from a pool. The mapping lasts for a session or configured period, then returns to the pool. New connections can fail when every address is already assigned.
PAT lets many internal flows share one public address. It separates those flows with ports and protocols. This is the usual behavior behind home, office, and small-business IPv4 connections.
SNAT changes the source address, usually for outbound traffic. DNAT changes the destination, often for inbound publishing or traffic redirection. A single gateway can perform both at different stages.
Port forwarding is a practical DNAT use case. A rule might map public TCP port `8443` to an internal service on port `443`. That rule still needs correct routing, firewall permission, and a listening service.
These categories answer different questions. Static and dynamic describe how address mappings are assigned.
Basic NAT and PAT distinguish address-only translation from address-and-port translation. SNAT and DNAT describe translation direction.
How Do Port Forwarding and NAT Traversal Work?
Port forwarding creates a fixed inbound mapping from a public port to an internal service. It usually combines DNAT with a matching firewall rule.
Before creating a rule, confirm that the service listens on the intended internal address and port. Assign the device a stable local address, so the rule does not later point elsewhere.
Check each part of the path before exposing the service:
- Listener: Confirm the application is running on the expected internal address and port.
- Protocol: Match TCP or UDP to the service instead of assuming either one will work.
- Mapping: Send the public port to the correct internal address and service port.
- Firewall: Permit only the required traffic at the gateway and on the destination host.
- Public address: Confirm that the router actually holds the public address used by the remote client.
- Upstream NAT: Check for a second router or CGNAT before changing the local rule repeatedly.
- External test: Test from another network because an internal test may depend on NAT loopback support.
Some routers support NAT loopback, also called hairpin NAT. It lets a local device reach an internal service through the router's public address. Without it, internal users may need split DNS or a private address.
Compatible gateways may support client-requested mappings through the Port Control Protocol. Any exposed service still needs appropriate authentication, current software, and narrow firewall rules.
Peer-to-peer apps may use STUN or ICE to find a working connection, or send traffic through a relay. These methods cannot give users control over a provider's CGNAT gateway.
What Is the Difference Between Double NAT and CGNAT?
Double NAT means traffic crosses two translation layers. CGNAT is a shared translation layer operated inside an internet provider's network.
Double NAT often appears when a personal router sits behind another router. The inner router receives a private WAN address from the outer gateway. Both devices then maintain separate mappings for the same connection.
CGNAT places a shared translation layer inside the provider's network. Providers use it to share public IPv4 addresses among many subscribers. The subscriber can usually control only the local router's mappings.
A provider must keep its shared translator from running out of ports or breaking common applications. RFC 6888 documents common operational requirements.
The range `100.64.0.0/10` is Shared Address Space reserved for provider NAT deployments. RFC 6598 defines that range. It is separate from the private ranges defined for homes and organizations.
Ordinary outbound browsing can work through either arrangement. Inbound hosting, peer connections, remote access, and port forwarding are harder. A local rule cannot usually change an upstream mapping that the subscriber does not control.
CGNAT appears in both fixed and mobile networks, although providers use different designs. It does not follow one universal rotation schedule. The CGNAT guide covers detection, IPv6, gaming, hosting, and available workarounds.
What Do Open, Moderate, and Strict NAT Types Mean?
Open, Moderate, and Strict are labels used by applications, not formal NAT standards. Each application tests different ports, firewall rules, and ways of connecting to other devices.
Open generally means the application received the inbound connectivity it expected. Moderate usually means some peer connections work while others need assistance. Strict often means direct inbound connectivity is limited or unavailable.
Those labels do not identify one exact router configuration. Two applications can report different NAT types on the same device. Software updates, relay availability, and port requirements can also change a result.
Double NAT and CGNAT commonly make an Open result harder to achieve. A local forwarding rule cannot control an upstream translation layer. A firewall can also block traffic even when the NAT mapping is correct.
Start with the application's documented ports and connection test. Check the device firewall, local router, WAN address, and any upstream gateway in that order. Retest after each change instead of opening several unrelated ports.
Avoid placing a device in a router's exposed-host or DMZ mode as a first response. That setting can forward broad unsolicited traffic toward one device. A narrow mapping is easier to understand and protect.
UPnP can create mappings automatically when the router and application support it. Use it only on a trusted local network, and review the mappings the router creates. Manual rules provide more predictable control when a stable inbound service is required.
How Does NAT Compare With a Proxy and a VPN?
NAT translates addresses at a network boundary, while a proxy relays selected application traffic. A VPN creates a routed tunnel between the device and a VPN gateway.
| Technology | Main job | Typical scope | Application setup | Encryption from the technology |
|---|---|---|---|---|
| NAT | Translate addresses and ports | Traffic crossing a gateway | Usually transparent | No |
| Forward proxy | Relay configured connections | Selected applications or enforced traffic | Proxy endpoint and authentication | Not inherent; depends on protocol and transport |
| VPN | Add a routed tunnel | Selected routes or most device traffic | VPN client, profile, or router | Usually yes |
A home router's NAT usually affects matching outbound traffic without browser configuration. A forward proxy accepts a separate client connection and connects onward. It can provide controlled exits, locations, and session behavior.
A VPN normally encrypts traffic between the device and its gateway. The destination then sees the VPN gateway's public IP address. The proxy and VPN comparison covers traffic scope, encryption, setup, and common uses.
All three can appear in one route. A device can sit behind NAT, connect through a VPN, and use an application proxy. Each added layer gives you another place to check when DNS, routing, or performance fails.
The proxy endpoint and exit IP guide explains another important distinction. A client connects to the proxy endpoint, while the destination sees the selected exit IP. NAT may still exist before, within, or after that path.
How Does NAT Work in a Virtual Machine?
Virtual-machine NAT lets a guest reach external networks through a virtual gateway provided by the hypervisor. The guest receives a private address, while the virtual NAT service translates its outbound connections.
The local network usually sees guest traffic as coming from the host. An upstream NAT may replace that address before internet delivery. NAT mode therefore provides outbound access without presenting the guest as another local device.
Bridged mode behaves differently. It connects the guest more directly to the local network, where it normally receives its own address. Whether bridged mode works depends on the host, network, wireless adapter, and local access policy.
Inbound access to a guest in NAT mode usually needs a hypervisor port-forwarding rule. The physical router may need another rule when the service must accept internet traffic. That creates nested translation and two places where configuration can fail.
Start troubleshooting inside the guest. Confirm its private address, default gateway, DNS settings, service listener, and guest firewall. Then inspect the virtual network, host firewall, host route, and physical gateway.
NAT mode is not a complete isolation boundary. Shared folders, host integrations, exposed ports, and vulnerable guest services can still create risk. Use the hypervisor's security controls and keep both systems updated.
Is NAT the Same as a Firewall?
No, NAT and firewalls perform different jobs. NAT rewrites addresses, while a firewall permits or denies traffic according to policy.
Home gateways often provide both functions, which makes them easy to confuse. A dynamic NAT mapping usually begins with outbound traffic. Unsolicited inbound packets often lack a matching entry and therefore reach no internal device.
That behavior can reduce exposure, but translation itself is not the security control. RFC 4864 explains that rewriting address bits provides no security by itself. A stateful firewall can restrict unexpected inbound traffic without NAT.
Port forwarding makes the separation clear. NAT can direct public traffic toward an internal service, while the firewall decides whether to allow it. Publishing the mapping without protecting the service creates unnecessary exposure.
Static NAT shows why translation alone is not protection. A permanent mapping can expose an internal host whenever the firewall allows the traffic.
Some home routers expose settings called NAT filtering, but the label is vendor-specific. Read the device documentation before changing it. The option may affect mappings, firewall policy, or several functions together.
Use explicit firewall rules, secure application configuration, authentication, and updates. Do not rely on private addresses or NAT as a complete defense. A firewall also cannot replace security controls inside the application.
What Are the Benefits and Limitations of NAT?
NAT's main IPv4 benefit is address conservation. Combined with private addressing, NAPT reduces demand for globally unique IPv4 allocations.
NAT also separates internal addressing from an external provider assignment. An organization can change its public address without renumbering every private device. That flexibility does not make translation a security policy.
The tradeoff is state and complexity. A translator must track active mappings, ports, protocols, timers, and return paths. A busy gateway can run out of mapping entries or ports before it runs out of bandwidth.
NAT makes direct inbound and peer-to-peer connections harder. Inbound services need a port-forwarding rule, while peer apps may need a relay. Double NAT and CGNAT add another owner and another failure point.
Some protocols include IP addresses or ports in the data they send. Changing the packet header does not update those embedded values. Special helpers can rewrite some of them, but encryption can prevent inspection.
Sharing one public IP can make it harder to identify which subscriber sent a connection. A useful CGNAT record may need the public address, translated port, protocol, and precise timestamp. A public IP alone may represent many subscribers at the same moment.
NAT remains useful when translation solves a defined addressing problem. A sound design accounts for mapping capacity, inbound requirements, application behavior, logging, and IPv6. It should not replace other network controls.
Does NAT Hide Your IP Address?
NAT hides an internal private address from ordinary internet destinations during outbound connections. The destination sees the public mapping used by the NAT gateway instead.
That change is not anonymity. Websites can still associate requests with a shared public IP, account, cookies, browser characteristics, timing, and submitted information. Multiple devices sharing one address do not become indistinguishable.
NAT also does not choose a new country or network. The public address still belongs to the gateway's upstream connection. A provider decides how that public address is assigned and when it changes.
Sharing a public IP makes that address less useful for identifying one device. Operators can still separate sessions with timestamps and translation records. A public IP remains useful context, not a unique identity.
A proxy creates a different application route by design. The destination normally sees the proxy exit for properly configured traffic. Other applications continue using their existing routes unless they also use that proxy.
The safest way to confirm the visible address is to test the exact application path. A browser test proves what that browser exposes, not every application on the same device or local network. Open connections can also preserve an earlier route until they reconnect.
Does IPv6 Need NAT?
IPv6 does not normally need private-to-public NAT for address conservation. Its larger address space allows devices to use globally unique addresses while firewalls control inbound access.
Globally reachable addressing does not mean every device should accept unsolicited traffic. Routers and hosts still need suitable firewall policies. IPv6 privacy addresses can change over time, reducing how long one address identifies the same device.
Some transition tools still use address translation. NAT64, for example, helps IPv6 clients reach IPv4 services. That function differs from common IPv4-to-IPv4 translation used to share an address.
IPv6 can coexist with IPv4 NAT on the same network. A device may use native IPv6 for one destination and translated IPv4 for another. When troubleshooting, record whether the failed connection used IPv4 or IPv6.
Dual-stack networks support IPv4 and IPv6 at the same time. The paths can use different gateways, DNS answers, and firewall policies. Test each address family separately before blaming IPv4 NAT.
Unique local IPv6 addresses support private internal uses but are not globally routed. They do not provide public internet reachability by themselves.
Treat translation and protection as separate decisions. Removing NAT does not require removing stateful firewalling. Adding NAT also does not create a complete security policy.
How Can You Check Whether You Are Behind NAT?
Compare the device's local address, the router's WAN address, and the address visible online. One public IP checker cannot reveal every translation layer by itself.
First, inspect the active network connection on the device. An address within the private IPv4 ranges confirms local private addressing. Those ranges are `10.0.0.0/8`, `172.16.0.0/12`, and `192.168.0.0/16`.
Next, inspect the WAN or internet address on the router you administer. Then open the Proxidize IP Checker through the same application and route. Keep any proxy or VPN setting unchanged while comparing addresses.
| Router WAN address | Public checker result | Likely interpretation | Next check |
|---|---|---|---|
| Same public IPv4 | Same address | One local NAT layer is likely | Review local mapping and firewall rules |
| Private IPv4 | Different public IPv4 | Another NAT exists upstream | Check for a second router or provider gateway |
| Address in `100.64.0.0/10` | Different public IPv4 | CGNAT is likely | Ask the provider about public addressing |
| Public IPv4 | Different public IPv4 | Route may include another intermediary | Disable a proxy or VPN for one controlled test, then confirm upstream translation |
The comparison provides evidence rather than absolute proof. Router interfaces can show stale information, and multiple WANs can change the observed route. The provider can confirm whether its service uses CGNAT.
Repeat the test from the affected application whenever possible. System-wide and application-specific routes can differ. Record the time, address family, protocol, and visible address for each result.
How Do You Troubleshoot Common NAT Problems?
Start by asking whether outgoing traffic, incoming traffic, or both are failing. Then identify which router or provider handles each translation. Change one setting at a time.
| Symptom | Likely cause | What to check | Practical response |
|---|---|---|---|
| Websites show another IP | Normal NAT or proxy behavior | Local, WAN, and public addresses | No change if the intended route works |
| Port forwarding fails | Wrong host, protocol, firewall, double NAT, or CGNAT | Listener, internal address, rule, and WAN address | Correct the failing layer only |
| Local service works only inside the network | No inbound mapping or firewall rejection | External test, mapping, and security rule | Publish only the required service |
| Connection fails after idle time | NAT mapping expired | Application logs and keepalive behavior | Reconnect or use supported keepalives |
| Voice, video, or peer traffic is intermittent | Mapping behavior, timeout, or relay problem | Application logs and router support | Use the application's supported traversal method |
| Failures appear under heavy load | Port, state, memory, or CPU pressure | Mapping count and gateway resources | Reduce excess connections or resize the gateway |
For inbound failures, confirm that the service is listening before editing the router. Give the internal device a stable local address. Match TCP or UDP exactly, then add the narrowest firewall rule.
For double NAT, bridge the upstream gateway only when another device will provide routing and firewalling. Another option is using the second router as an access point. Forwarding through both layers works, but it adds failure points.
For CGNAT, ask whether the provider offers public IPv4, supported IPv6, or another inbound option. An authorized outbound tunnel or relay may solve some remote-access needs.
Measure delay separately from reachability. NAT type does not automatically explain a slow connection. The latency and bandwidth guide separates response delay from transfer capacity.
If a route uses a proxy, check proxy-specific causes before changing NAT settings. The slow proxy troubleshooting guide separates proxy, network, client, and destination delays.
If a hostname fails while its IP address works, investigate DNS instead of rewriting NAT rules. The DNS caching guide explains how stale answers can persist across several cache layers.
Record the original local, WAN, and public IPs, plus the protocol, ports, timestamp, and exact error. This evidence separates NAT failures from DNS, firewall, application, and provider problems.
How Does NAT Fit Into a Proxidize Proxy Route?
NAT can exist in the underlying network path, while Proxidize controls the application's proxy route. Both can operate in the same connection without becoming the same technology.
A mobile network may use CGNAT before traffic reaches the public internet. Its address assignments and endpoint availability can still affect a selected mobile exit.
Proxidize Per GB access points apply targeting and rotating or sticky settings. Mobile Per Proxy uses assigned proxies and direct rotation controls instead. A mobile connection can still disappear or receive another IP when the underlying network changes.
Proxidize Residential Proxies provide global routes with country, city, and ISP targeting. They suit web scraping, price monitoring, SEO monitoring, market research, and other location-sensitive collection.
Best For: Global workflows that need broad geographic coverage and rotating or sticky residential sessions.
Proxidize Mobile Proxies provide global mobile-network routes with country, city, and ASN or ISP targeting. They fit approved tests that specifically need a mobile network context.
Best For: Mobile web access, search monitoring, ad verification, and application testing across supported locations.
At the network layer, the destination normally sees the selected proxy exit instead of the application's direct source IP. Application data, headers, cookies, and browser signals can still reveal other information. Traffic outside that proxy configuration continues through its existing network path.
Test the proxy from the application that will actually use it. Confirm the endpoint, authentication, session mode, location, exit IP, and returned content. When a direct test is available, send the same request without the proxy and compare the result.
What Should You Remember About NAT?
NAT translates address information as traffic crosses a gateway. PAT adds port translation, so concurrent flows can use distinct mappings.
The labels describe different dimensions. Static and dynamic describe mapping assignment, while PAT describes port translation. SNAT and DNAT describe direction, while double NAT and CGNAT describe where translation layers sit.
Troubleshooting becomes easier when you compare the local, WAN, and public addresses. Keep the application route unchanged while checking each layer. A public address mismatch is evidence, not a complete diagnosis.
NAT is not encryption, a proxy, a VPN, or a firewall policy. Each technology changes a different part of the connection. Verify the exact route instead of assuming that one visible IP explains every layer.
Frequently asked questions
NAT stands for Network Address Translation and changes IP information as traffic crosses a gateway. Translation can affect a packet's source or destination address. Home gateways commonly add port translation, so replies return to the correct private device during simultaneous connections.
NAT is a network function, not an application protocol. A router, firewall, or gateway rewrites packet addresses and tracks the matching return path. TCP, UDP, and ICMP use different fields, so a translator cannot handle every packet in exactly the same way.
NAT is the broad concept of translating network addresses. PAT also translates TCP or UDP ports, allowing many internal connections to share one public IPv4 address. Most home routers use PAT even when their settings simply call the feature NAT.
No, NAT does not change the public address assigned by an internet provider. For a typical outbound connection, it replaces the private source address with the gateway's public mapping. Provider leases, network events, and policy can change that assignment, while restarting the router may not.
A home-router rule normally cannot control a provider's outer CGNAT mapping. Ask whether public IPv4, supported IPv6, or another inbound option is available. A local rule affects only the local layer, so remote access may need an approved outbound tunnel or relay.
A Strict NAT label means the application could not establish every expected peer connection. Double NAT, CGNAT, missing mappings, or firewall rules can cause it. Follow the application's guidance, test from another network, and avoid exposing every port merely to change the label.
NAT adds gateway processing and state tracking, but a healthy device usually handles ordinary traffic efficiently. Slowdowns can appear when the gateway lacks CPU, memory, mapping capacity, or available ports. Measure DNS, connection, latency, and download time before blaming NAT.