What is a TURN server?
A TURN server helps two devices communicate when they can’t connect directly due to firewalls or NAT routers. It’s commonly used in real-time applications like video calls and online communication tools.
- 1 Gbit/s bandwidth & unlimited traffic
- Minimum 99.99% uptime & ISO-certified data centers
- 24/7 premium support with a personal consultant
What is a TURN server?
A TURN server (Traversal Using Relays around NAT) is a network service that relays data between two endpoints when a direct connection isn’t possible. This usually happens when strict firewalls or complex NAT setups block peer-to-peer communication. In these situations, the TURN server routes all traffic through itself instead of allowing a direct connection. It operates at the application layer and ensures that data still reaches its destination reliably.
The server assigns a public relay address and port to a client. Other participants send their data to this address, and the TURN server forwards it to the intended recipient. TURN works with standard transport protocols like UDP and TCP and is closely tied to real-time communication. While TURN requires more resources than direct connections, it significantly improves connection reliability. That’s why it plays a key role in professional communication systems.
In many setups, a STUN server is used first. It helps devices determine their public IP address and port mapping so they can try to establish a direct peer-to-peer connection. If a direct connection fails due to restrictive firewalls or certain NAT types, the TURN server steps in and relays all traffic between the endpoints.
How does a TURN server work?
You can think of a TURN server as a relay point that connects two devices when they can’t reach each other directly:
- First the client connects to the TURN server and authenticates, typically using temporary credentials.
- After logging in, the client requests an allocation. The TURN server assigns a public relay address and port that can receive incoming data. The client shares this relay address with the other participant.
- Both endpoints send their data to the TURN server instead of communicating directly. The server acts as an intermediary, receiving data and forwarding it to the other participant.
This process works for both incoming and outgoing traffic and bypasses NAT and firewall restrictions. TURN is defined in RFC 8656 and supports multiple transport protocols such as UDP and TCP. If needed, communication can also run over TLS, which is useful in restricted corporate environments where encrypted traffic is required.
A TURN server keeps track of sessions, mappings, and timeouts to manage resources efficiently and prevent misuse. Since all data passes through the TURN server, latency increases and bandwidth usage is higher. However, this trade-off ensures stable communication even in challenging network conditions.
When do you need a TURN server?
TURN servers are mainly used in real-time communication scenarios, including video conferencing tools, VoIP (voice over IP) services, online gaming and WebRTC-based applications.
A TURN server becomes essential when users are behind restrictive firewalls or NAT configurations. Without TURN, connections may fail or drop unexpectedly. This is especially common in corporate networks, where strict security rules often block direct communication. In these environments, TURN helps ensure reliable connectivity. Developers also rely on TURN to improve fault tolerance.
One example use of a TURN server is Nextcloud Talk. Nextcloud Talk’s audio and video features rely on WebRTC and require stable connections between participants. When users are in different networks or behind firewalls, a TURN server ensures calls remain stable.
What hardware do you need for a TURN server?
You don’t need specialized hardware to run a TURN server, but you do need the right balance of resources. Many setups use VPS servers (Virtual Private Servers) because they offer strong performance, predictable costs, and flexible scaling options. A VPS provides dedicated resources such as CPU cores, RAM, and guaranteed bandwidth, which are essential for running a TURN server reliably:
- The CPU handles tasks like forwarding data packets, managing sessions, and, if needed, processing encryption.
- Enough RAM ensures the server can handle multiple connections at the same time and keep track of their state.
- The network interface is critical since all media traffic flows through the TURN server and can quickly add up to high data throughput.
A fast, stable connection with low latency has a direct impact on audio and video quality. As your user base grows, you can easily scale a VPS by adding more CPU power, RAM or bandwidth. Another advantage is the freedom to choose your own operating system. In practice, TURN software usually runs on Linux, as it tends to run more efficiently there.
You also get full control over firewall and network settings, which makes it easier to open specific ports or fine-tune NAT behavior. Compared to shared hosting, VPS solutions offer better performance, more predictable resources and greater reliability. For small to medium-sized setups, a well-configured VPS is often all you need.
Try out your VPS for 30 days. If you're not satisfied, you get your money back.


