Port reference › Media & games
Port 3478 · STUN / TURN
WebRTC and video call NAT traversal
TCP/UDP Media & games Exposure risk: Low
What is port 3478 used for?
Lets WebRTC, video calls and P2P apps discover their public address behind NAT (STUN) and relay traffic (TURN). Blocking it on a corporate firewall makes calls drop or lag.
Registered port (1024-49151): the range used by ordinary applications.
Security notes
An open TURN server can be abused to relay other people’s traffic. Use time-limited credentials.
Allow port 3478 through the firewall
This port is generally fine to expose publicly.
sudo ufw allow 3478/tcp
sudo ufw allow 3478/udp
sudo ufw status sudo firewall-cmd --permanent --add-port=3478/tcp
sudo firewall-cmd --permanent --add-port=3478/udp
sudo firewall-cmd --reload sudo iptables -A INPUT -p tcp --dport 3478 -j ACCEPT
sudo iptables -A INPUT -p udp --dport 3478 -j ACCEPT New-NetFirewallRule -DisplayName "Allow TCP 3478" -Direction Inbound -Protocol TCP -LocalPort 3478 -Action Allow
New-NetFirewallRule -DisplayName "Allow UDP 3478" -Direction Inbound -Protocol UDP -LocalPort 3478 -Action Allow # Replace sg-0123456789abcdef0 with your security group ID
aws ec2 authorize-security-group-ingress --group-id sg-0123456789abcdef0 --protocol tcp --port 3478 --cidr 0.0.0.0/0
aws ec2 authorize-security-group-ingress --group-id sg-0123456789abcdef0 --protocol udp --port 3478 --cidr 0.0.0.0/0 Check whether port 3478 is open
sudo ss -tulpn | grep ':3478 ' netstat -ano | findstr :3478 nc -zv SERVER 3478
# Windows
Test-NetConnection SERVER -Port 3478 sudo lsof -i :3478