HTTPfy

Port 5162 (snmpssh-trap)

IANA assigns port 5162 to snmpssh-trap: SNMP Notification over SSH Transport Model.

Registered (user) port, 1024-49151 TCP

IANA assignment

Service nameProtoDescriptionAssigneeReference
snmpssh-trap TCP SNMP Notification over SSH Transport Model - RFC 5592

Check what is listening on port 5162

Linux: is anything listening on TCP 5162?
sudo ss -tlnp 'sport = :5162'
Linux / macOS: which process owns the port
sudo lsof -nP -i :5162
Older Linux / BSD (net-tools)
sudo netstat -tlnp | grep ':5162 '
Windows (Command Prompt)
netstat -ano | findstr :5162
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 5162 -State Listen | Select LocalAddress,OwningProcess

Test it from outside

From another machine
nc -vz -w 5 HOST 5162
From Windows
Test-NetConnection HOST -Port 5162

Block port 5162 in the firewall

ufw
sudo ufw deny 5162/tcp
iptables
sudo iptables -A INPUT -p tcp --dport 5162 -j DROP
nftables
sudo nft add rule inet filter input tcp dport 5162 drop
Windows Firewall
New-NetFirewallRule -DisplayName 'Block TCP 5162' -Direction Inbound -Protocol TCP -LocalPort 5162 -Action Block

Related ports

All port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.