Home Net Guide

Home / Port numbers / Port 139

Port 139: NetBIOS session service

Older Windows file sharing over NetBIOS. Port 139 uses TCP.

Port
139
Commonly used for
NetBIOS session service
Transport
TCP
Encrypted
No
Range
System (well-known) port, 0 to 1023
Our advice
Keep it closed to the internet
IANA registration
netbios-ssn NETBIOS Session 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 139 is used for

Port 139 carried Windows file and printer sharing before Windows 2000, when SMB ran on top of an older layer called NetBIOS. Modern systems use port 445 directly but may still listen on 139 so that very old devices can connect.

Should port 139 be open?

It exposes the same file-sharing service as 445 with older, weaker behaviour. It should never be reachable from the internet. On a network with no devices from the Windows XP era, NetBIOS over TCP/IP can be switched off entirely.

Related ports

  • Port 445 (SMB): Windows file and printer sharing
  • Port 137 (NetBIOS name service): finding Windows computers by name on a local network
  • Port 138 (NetBIOS datagram service): legacy Windows network browsing broadcasts

See all port numbers for the full list and how ports, TCP and UDP work.

Previous: Port 138 (NetBIOS datagram service) · Next: Port 143 (IMAP)