Protocols
Saved & recent

Network address translation

Also called: NAT, NAPT, port address translation, PAT

Network address translation changes IP addresses as packets cross a network boundary. A common variant also translates transport ports, allowing several private-network endpoints to share one public IPv4 address. The translator keeps mappings so replies can be sent back to the appropriate internal endpoint.

For example, 10.0.0.8:5000 might be mapped to 203.0.113.9:62001 for an outbound TCP connection. The reply uses the mapping in reverse. This changes address visibility and can complicate incoming connections; it does not encrypt payloads or replace an explicit firewall policy. The public-side address here is a documentation example.

Read first
IPv4
Related
IPv4, TCP, End-to-end principle
Further reading
IETF RFC 3022 — Traditional IP Network Address Translator
inside client NAPT router server 198.51.100.4:443 10.0.0.8:5000 203.0.113.9:62001 outbound source translation 203.0.113.9:62001 10.0.0.8:5000 reply destination translation 10.0.0.8:5000 203.0.113.9:62001 address and port mapping inside tuple external tuple
Illustrative NAPT mapping. Address and port rewriting lets replies find the internal endpoint; payloads are not encrypted by this operation.

View in the full Protocols collection