Port 161: SNMP

UDP 161 is the port for Simple Network Management Protocol. Never on the internet; default community strings leak full device configuration.

Port 161 at a glance
ServiceSimple Network Management Protocol
ProtocolUDP
Exposure riskHigh: do not expose to the internet
Secure alternativeSNMPv3 with authentication and encryption
RangeWell-known (0–1023): binding needs root/admin on Unix

Port 161 is UDP-only. UDP has no handshake, so no online checker can reliably tell open from filtered; test with the service's own client.

What port 161 does

Monitoring systems poll routers, switches, printers and servers for counters and status over UDP 161; devices send alerts (traps) to the manager on UDP 162. SNMP v1/v2c authenticate with a plain-text community string such as "public".

Should port 161 be open?

Never on the internet; default community strings leak full device configuration. Where you can, use SNMPv3 with authentication and encryption instead.

Find what's listening on port 161

  • Linux: sudo ss -tulpn | grep :161
  • macOS: sudo lsof -nP -i :161
  • Windows: netstat -ano | findstr :161, then look up the PID in Task Manager.

Open or block it in a firewall

  • ufw: sudo ufw allow 161/udp (or deny)
  • firewalld: sudo firewall-cmd --add-port=161/udp --permanent && sudo firewall-cmd --reload
  • Windows: New-NetFirewallRule -DisplayName "Port 161" -Direction Inbound -Protocol UDP -LocalPort 161 -Action Allow

Port assignment per the IANA Service Name and Transport Protocol Port Number Registry. Test several ports at once with the port scanner, or any port with the open port checker.

Questions about port 161

What is port 161 used for?
Simple Network Management Protocol. Monitoring systems poll routers, switches, printers and servers for counters and status over UDP 161; devices send alerts (traps) to the manager on UDP 162. SNMP v1/v2c authenticate with a plain-text community string such as "public".
Is port 161 TCP or UDP?
UDP. SNMP uses UDP port 161.
Is it safe to open port 161?
High: do not expose to the internet. Never on the internet; default community strings leak full device configuration. Secure alternative: SNMPv3 with authentication and encryption.
How do I check if port 161 is open?
Port 161 is UDP-only, which has no handshake, so an online TCP checker can't confirm it. Use the service's own client to test, and check what is listening locally with ss -ulpn | grep :161 (Linux) or netstat -ano | findstr :161 (Windows).

← Port 143 (IMAP) · Port 162 (SNMP trap) →