TCP port 139 is the NetBIOS Session Service, historically used to carry SMB file sharing over NetBIOS on Windows networks.
A port is a transport layer number used together with an IP address and a protocol such as TCP or UDP to direct traffic to the correct service on a host.
A server process binds a socket to a port and listens, while a client typically chooses an ephemeral source port for outbound connections.
The combination of source and destination IP addresses, source and destination ports, and the transport protocol uniquely identifies a flow so the operating system can keep many conversations separate.
Firewalls, NAT, and scanners talk about ports because the destination port is the stable rendezvous point that exposes a service to the network.
In real usage, a client opens a TCP connection to port 139, negotiates a NetBIOS session, and then speaks SMB commands to authenticate, list shares, and read or write files.
Modern Windows uses SMB directly over TCP 445 in most environments, but 139 still appears on legacy systems, older device firmware, and misconfigured networks where NetBIOS is enabled.
Because file sharing surfaces are high value, open 139 is commonly associated with credential exposure, share enumeration, and lateral movement once an attacker is inside a network.
Understanding the port helps you interpret scans: 139 often means legacy Windows file sharing behavior rather than a modern hardened SMB stack.