What is the STUN Protocol, Its Purpose and how it Works

STUN stands for Simple Traversal of User Datagram Protocol (UDP) through Network Address Translators (NAT’s). The protocol is used in several different network implementations, one of which is VoIP. STUN is used to resolve the public IP of a device running behind a NAT, to solve problems such as one-way audio during a phone call or phone registration issues when trying to register to a VoIP or an IP PBX residing on a different network.

stun protocol

In the following articles we explain in detail what the STUN protocol is, its purpose, explain STUN messages, STUN protocol attributes, common error codes and when it is possible to switch off STUN resolution.

Typically it is used in several different network implementations and scenarios, one of which is in VoIP implementations.