
Port 3478 (UDP) is the standard for STUN/TURN server (WebRTC). STUN (Session Traversal Utilities for NAT) and TURN — NAT-traversal protocols for WebRTC. Port 3478 — UDP and TCP. WebRTC clients use it to discover external IP + traverse fire
Below: what uses this port, security considerations, online check, FAQ.
Free online tool — ping & port checker: instant results, no signup.
STUN/TURN server (WebRTC)
STUN (Session Traversal Utilities for NAT) and TURN — NAT-traversal protocols for WebRTC. Port 3478 — UDP and TCP. WebRTC clients use it to discover external IP + traverse firewalls. Popular servers: coturn (open source), Twilio STUN/TURN (SaaS).
TURN server without auth = relay for arbitrary traffic. Requires TURN secret. STUN is safe (just returns external IP).
Enterno.io Ping + Port checker tests TCP reachability of any port from our server in Moscow.
Setting up a STUN/TURN server on port 3478 can significantly enhance the connectivity of WebRTC applications. Below are the steps to configure a basic STUN/TURN server using coturn, a popular TURN server software.
1. Install coturn: Depending on your operating system, you can install coturn using the following commands:
sudo apt-get install coturnsudo yum install coturn2. Edit Configuration File: The configuration file is usually located at /etc/turnserver.conf. Open it using your preferred text editor:
sudo nano /etc/turnserver.conf3. Basic Configuration: Ensure the following lines are uncommented and configured:
listening-port=3478fingerprintlt-cred-mechrealm=yourdomain.com4. Enable UDP: To ensure that your server is listening for UDP traffic, include:
no-loopback-peersno-multicast-peers5. Start the Server: After saving your configuration, you can start the TURN server with:
sudo turnserver -c /etc/turnserver.conf6. Testing the Configuration: You can test if the server is running correctly by using a tool like telnet:
telnet yourdomain.com 3478With these steps, you should have a functioning STUN/TURN server on port 3478, ready to facilitate WebRTC connections.
When using port 3478 for STUN/TURN services, security is paramount to protect against unauthorized access and potential attacks. Here are key security considerations:
lt-cred-mech (long-term credential mechanism) to ensure that only authenticated users can access the TURN service.By taking these security measures, you can significantly reduce the risks associated with using port 3478 for STUN/TURN services in your WebRTC applications.
Port 3478 is primarily used for NAT traversal in WebRTC applications. Here are some common use cases:
These use cases highlight the importance of port 3478 in enabling real-time communication and collaboration across various platforms, making it a vital component of modern web applications.
No, modern cloud providers (AWS, Google Cloud, Yandex) close all incoming ports by default. You must explicitly allow port 3478 in a Security Group or firewall.
Use Enterno Ping + Port Checker. Or in shell: nc -vz example.com 3478 or telnet example.com 3478.
Depends on the service. STUN/TURN server (WebRTC) should never be exposed publicly without authentication + TLS. See our 2026 exposure research.
Free plan — 10 monitors, checks every 5 min, no card required. Upgrade for 1-minute interval and multi-region monitoring.