3478Port
TCP/UDPProtocol
stunIANA service nameVoice & mediaCategory
Port range
3478 is a registered port (range 1024–49151). Any user can bind to it; IANA records which service registered the number.
Security
Only open port 3478 to the hosts that need it. Prefer the encrypted variant of the protocol where one exists.
Open port 3478 in a firewall
ufw sudo ufw allow 3478/tcp
sudo ufw allow 3478/udp
iptables sudo iptables -A INPUT -p tcp --dport 3478 -j ACCEPT
sudo iptables -A INPUT -p udp --dport 3478 -j ACCEPT
firewalld sudo firewall-cmd --permanent --add-port=3478/tcp
sudo firewall-cmd --permanent --add-port=3478/udp
Windows New-NetFirewallRule -DisplayName "STUN / TURN 3478" -Direction Inbound -Protocol TCP -LocalPort 3478 -Action Allow
Check if port 3478 is open
nc -vz example.com 3478 Test-NetConnection example.com -Port 3478 # PowerShell sudo ss -tulpn | grep ':3478 ' # what is listening locally (Linux)