Concepts / Address translation

Address translation

STUN

Also called Session Traversal Utilities for NAT, server-reflexive address, public address discovery, UDP 3478, rendezvous server

A server that tells a device behind NAT the public address and port its packets arrive from.

The server tells you what it saw
The server tells you what it saw

A device cannot see what its NAT did to its packets. The STUN server reads the source address and port the request arrived from and sends them back.

STUN is a protocol that tells a device behind NAT the public address and port its packets arrive from. The device sends a UDP request to a STUN server (port 3478); the server answers with the source address and port it saw, the server-reflexive address. The device gives that to its peer, which sends there. It only helps if the NAT keeps the same mapping for other destinations.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab