Skip to content

All ports

Port 138: NetBIOS Datagram Service

Port 138 is used by NetBIOS Datagram Service over UDP. Port 138 is the NetBIOS datagram service, a connectionless way for older Windows hosts to send short messages and browse lists. It appears in the study tables for 220-1201, SY0-701.

What runs on port 138

NetBIOS (datagram) uses UDP. Legacy NetBIOS datagram service: connectionless messages and browsing announcements.

Port 138 is the NetBIOS datagram service, a connectionless way for older Windows hosts to send short messages and browse lists. It uses UDP and relies on broadcasts, so it stays inside one network segment.

Secure alternative and common mix-ups

The study tables do not list a separate secure replacement for NetBIOS Datagram Service. Where it has to cross a network you do not control, restrict who can reach it and carry it inside a VPN.

It is easy to mix up with 139, the connection-oriented session service. Datagram means no connection and no delivery guarantee, session means a TCP connection for file and printer sharing.

Check port 138 on your own network

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

UDP has no handshake, so a silent probe does not prove the port is closed. No reply can mean the port is open and the service ignored the probe, or that a firewall dropped it. A scanner such as nmap with -sU reports that state as open or filtered.

Exam objectives that include it

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

Learn 138 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 138 as netbios-dgm, "NETBIOS Datagram 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 Datagram Service on port 138 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.