How Domain Controllers respond to LDAP Ping on UDP 138 port
This article describes how to make domain controllers to reply to LDAP Ping.
Applies to: Windows Server 2012 R2
Original KB number: 3088277
Consider the following scenario:
- LMHOSTS file on Windows Server does not contain client hostname.
- WINS server is not configured on Windows Server, or WINS server does not resolve client hostname.
- Windows Server and client are in another network segment.
In this scenario, Windows Server 2008 or later OS doesn't respond to LDAP Ping (UDP 138 port) from client machine.
In Windows Server 2003 or older, Windows Server operating systems reply to LDAP Ping on UDP 138 port from client, the behavior however changed since Windows Server 2008.
To make Windows Server 2008 or later to reply to LDAP Ping, configure either of the following settings.
(A) Add LMHOSTS
Move to %windir%\system32\drivers\etc folder
Add IP address and hostname of client to LMHOSTS file.
(B) Add WINS server
Configure TCP/IP to use WINS server that can resolve client hostname to Windows Server.
(C) Place Windows Servers and client machines in the same segment.
Windows Server resolves client hostname by using NetBIOS broadcast if Windows Server and clients are on the same subnet.
Note: DNS is the primary method of resolving name queries in Active Directory starting with Windows Server 2000 and including Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows Server 2012 R2, Windows Server 2016 and beyond.
For more information on DCLOCATOR, see: