Port 3478 is STUN and TURN. WebRTC clients use STUN to discover their public address and TURN to relay media when a direct connection is impossible. It is normally meant to be reachable from the internet.
- Port
- 3478
- Protocol
- UDP and TCP
- Service
- STUN / TURN
- Expose to internet?
- Yes, usually
- Also used by
- coturn, WebRTC, Nextcloud Talk, Jitsi, Matrix calls
Is port 3478 safe to open?
TURN servers have to be public for video calls to work through NAT. The risk is an unrestricted relay: without credentials, anyone can use it to relay traffic, and a TURN server that relays to private addresses can be used to reach internal services.
How to secure STUN / TURN
- Require credentials (coturn
lt-cred-mechoruse-auth-secretwithstatic-auth-secret). - Block relaying to private and loopback ranges with
denied-peer-ip(coturn). - Open only the relay port range you configure (
min-port/max-port).
Check if port 3478 is open
Linux: what is listening on this port
sudo ss -tulpn | grep ':3478 'Windows (PowerShell): what is listening
Get-NetTCPConnection -LocalPort 3478 -State Listen | Select-Object LocalAddress, OwningProcess, @{n='Process';e={(Get-Process -Id $_.OwningProcess).Name}}From another machine: is it reachable
nc -zv HOST 3478
# or
nmap -p 3478 HOST
# Windows
Test-NetConnection HOST -Port 3478Open port 3478 in the firewall
ufw (Ubuntu, Debian)
sudo ufw allow 3478/udp
sudo ufw allow 3478/tcpfirewalld (RHEL, Rocky, Alma, Fedora)
sudo firewall-cmd --permanent --add-port=3478/udp
sudo firewall-cmd --permanent --add-port=3478/tcp
sudo firewall-cmd --reloadWindows Firewall (PowerShell, as Administrator)
New-NetFirewallRule -DisplayName "Allow 3478/UDP" -Direction Inbound -Protocol UDP -LocalPort 3478 -Action Allow
New-NetFirewallRule -DisplayName "Allow 3478/TCP" -Direction Inbound -Protocol TCP -LocalPort 3478 -Action AllowMonitor port 3478
Add a TCP port monitor for 3478 and Statance connects to it from up to six regions, alerting you by email, Slack, Discord or PagerDuty when STUN / TURN stops answering. TCP port monitoring.
Related ports
FAQ
What is port 3478 used for?
Port 3478 is STUN and TURN. WebRTC clients use STUN to discover their public address and TURN to relay media when a direct connection is impossible. It is also used by coturn, WebRTC, Nextcloud Talk, Jitsi, Matrix calls.
Is it safe to open port 3478?
Usually, yes. TURN servers have to be public for video calls to work through NAT. The risk is an unrestricted relay: without credentials, anyone can use it to relay traffic, and a TURN server that relays to private addresses can be used to reach internal services.
Is port 3478 TCP or UDP?
STUN / TURN uses UDP and TCP on port 3478.
How do I check if port 3478 is open?
On the server, run sudo ss -tulpn | grep ':3478 ' (Linux) or Get-NetTCPConnection -LocalPort 3478 (Windows) to see what is listening. From another machine, run nc -zv HOST 3478 or Test-NetConnection HOST -Port 3478.
Know the moment a port stops answering.
TCP, HTTP, DNS and SSL checks from six regions, plus server metrics from a one-line agent.