Port 5060: SIP

Port 5060 (TCP/UDP) is used by SIP. Session Initiation Protocol for VoIP call setup. 5061 is SIP over TLS.

5060Port
TCP/UDPProtocol
sipIANA service name
Voice & mediaCategory

Port range

5060 is a registered port (range 1024–49151). Any user can bind to it; IANA records which service registered the number.

Security

Only open port 5060 to the hosts that need it. Prefer the encrypted variant of the protocol where one exists.

Open port 5060 in a firewall

ufw         sudo ufw allow 5060/tcp
            sudo ufw allow 5060/udp
iptables    sudo iptables -A INPUT -p tcp --dport 5060 -j ACCEPT
            sudo iptables -A INPUT -p udp --dport 5060 -j ACCEPT
firewalld   sudo firewall-cmd --permanent --add-port=5060/tcp
            sudo firewall-cmd --permanent --add-port=5060/udp
Windows     New-NetFirewallRule -DisplayName "SIP 5060" -Direction Inbound -Protocol TCP -LocalPort 5060 -Action Allow

Check if port 5060 is open

nc -vz example.com 5060
Test-NetConnection example.com -Port 5060   # PowerShell
sudo ss -tulpn | grep ':5060 '   # what is listening locally (Linux)

Other voice & media ports

Frequently asked questions

What is port 5060 used for?
SIP. Session Initiation Protocol for VoIP call setup. 5061 is SIP over TLS.
Is port 5060 TCP or UDP?
Both are assigned. Check which one your software actually listens on.