Port 5061: SIP over TLS

Port 5061 (TCP) is used by SIP over TLS. Encrypted SIP signalling.

5061Port
TCPProtocol
sipsIANA service name
Voice & mediaCategory

Port range

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

Security

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

Open port 5061 in a firewall

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

Check if port 5061 is open

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

Other voice & media ports

Frequently asked questions

What is port 5061 used for?
SIP over TLS. Encrypted SIP signalling.
Is port 5061 TCP or UDP?
TCP.