Port 137: NetBIOS Name Service

Port 137 (UDP) is used by NetBIOS Name Service. Legacy Windows name resolution on local networks.

137Port
UDPProtocol
netbios-nsIANA service name
Windows networkingCategory

Port range

137 is a well-known (system) port (range 0–1023). On Linux and macOS, binding to it traditionally needs root or the CAP_NET_BIND_SERVICE capability.

Security

Port 137 should not be reachable from the public internet. Restrict it to trusted networks or a VPN, and scan your public IP to confirm it is closed.

Open port 137 in a firewall

ufw         sudo ufw allow 137/udp
iptables    sudo iptables -A INPUT -p udp --dport 137 -j ACCEPT
firewalld   sudo firewall-cmd --permanent --add-port=137/udp
Windows     New-NetFirewallRule -DisplayName "NetBIOS Name Service 137" -Direction Inbound -Protocol UDP -LocalPort 137 -Action Allow

Check if port 137 is open

nc -vzu example.com 137   # UDP checks are unreliable: no reply ≠ closed
sudo ss -tulpn | grep ':137 '   # what is listening locally (Linux)

Other windows networking ports

Frequently asked questions

What is port 137 used for?
NetBIOS Name Service. Legacy Windows name resolution on local networks.
Is port 137 TCP or UDP?
UDP.