Home / Port numbers / Port 138
Port 138: NetBIOS datagram service
Legacy Windows network browsing broadcasts. Port 138 uses UDP.
- Port
- 138
- Commonly used for
- NetBIOS datagram service
- Transport
- UDP
- Encrypted
- No
- Range
- System (well-known) port, 0 to 1023
- Our advice
- Local network only: never forward it from the internet
- IANA registration
netbios-dgmNETBIOS Datagram Service (TCP, UDP)
Registration: IANA Service Name and Transport Protocol Port Number Registry, retrieved 15 November 2026. The registered name can differ from the everyday use, because popular software often adopts a port without registering it. The description and advice are written by Home Net Guide and describe common practice: any program can be set to use any port.
What port 138 is used for
Port 138 is the NetBIOS datagram service. Its main use was the old Network Neighborhood feature, where Windows computers announced themselves and built a list of machines on the local network.
Should port 138 be open?
It has no use beyond the local network and no place on the internet. It belongs to the same legacy family as 137 and 139 and can be disabled along with them.
Related ports
- Port 137 (NetBIOS name service): finding Windows computers by name on a local network
- Port 139 (NetBIOS session service): older Windows file sharing over NetBIOS
- Port 445 (SMB): Windows file and printer sharing
See all port numbers for the full list and how ports, TCP and UDP work.
Previous: Port 137 (NetBIOS name service) · Next: Port 139 (NetBIOS session service)