Skip to content

All ports

Port 139: NetBIOS Session Service

Port 139 is used by NetBIOS Session Service over TCP. Port 139 is the NetBIOS session service, which carried Windows file and printer sharing before SMB could run directly over TCP. It appears in the study tables for 220-1201, SY0-701.

What runs on port 139

NetBIOS (session) uses TCP. Legacy NetBIOS session service: older Windows file and printer sharing, replaced by SMB directly on 445.

Port 139 is the NetBIOS session service, which carried Windows file and printer sharing before SMB could run directly over TCP. It uses TCP and sets up a connection for the exchange.

Secure alternative and common mix-ups

NetBIOS Session Service is the encrypted option for BGP on port 179.

Modern Windows sharing uses port 445 directly. If both 139 and 445 are open, closing 139 usually changes nothing for current clients, and it removes an older, noisier path to the same shares.

Check port 139 on your own network

To test a remote host from Windows, run Test-NetConnection with the host name and -Port 139. From Linux or macOS, run nc -vz host 139. To see what is listening on the machine itself, use ss -tulpn on Linux or netstat -ano on Windows and look for :139.

A refused connection usually means no service is listening, and a probe that hangs usually means a firewall dropped it. Check the service, then the host firewall, then the network firewall, in that order.

Exam objectives that include it

These are the objectives whose tables list port 139. The same row appears in the cheat sheet for each exam.

Learn 139 together with these. They are its pair, its secure counterpart or a service that sits under the same objective.

Where this comes from

The IANA registry lists port 139 as netbios-ssn, "NETBIOS Session Service", for both TCP and UDP. Checked 2026-11-15.

IANA Service Name and Transport Protocol Port Number Registry

Questions

The port number does not decide that. NetBIOS Session Service on port 139 is only as safe as its configuration, how far it is exposed and how current the software is.

Keep going with the ports quiz and the cheat sheets.

Start studying free

Free plan, no card.