Never expose to the internet

Port 389 — LDAP

Directory services — user and group lookups, often Active Directory.

Port
389
Service
LDAP
Protocol
TCP

Security guidance

Exposing a directory to the internet is a serious risk. Use LDAPS and restrict to internal networks or a VPN.

Test port 389 yourself

From your own machine, against any host (swap in your domain):

macOS / Linux — netcat

nc -vz example.com 389

Any OS — nmap

nmap -p 389 example.com

Windows — PowerShell

Test-NetConnection example.com -Port 389

open = a service answered on port 389; closed = the host replied but nothing is listening; filtered = a firewall silently dropped the probe. These test from your network — our port checker tests from the outside, the view that matters for security.

Is port 389 open on your server?

Test it from outside your network — the only view that matters.

Check port 389