---
title: TCP/UDP Ports for LDAP Web API and BizTalk LDAP Adapter - Test and Troubleshoot
description: "Find and test the TCP and UDP ports for the Nodinite LDAP Web API and BizTalk LDAP Adapter: where the firewall rules are documented, how to test LDAP, LDAPS, DNS, Kerberos, and Global Catalog ports, and common connection errors."
---

# TCP and UDP Ports (Nodinite LDAP Adapter)

Use this troubleshooting page when an LDAP connection from the [LDAP Web API][] or the [BizTalk LDAP Adapter][] fails and you suspect a firewall. It tells you where the TCP ports and UDP ports of both products are documented, and how to test each port from the server that runs the product.

✅ Find the one page that lists every LDAP port per hop  
✅ Test LDAP, LDAPS, DNS, Kerberos, and Global Catalog ports with PowerShell  
✅ Match common connection errors to the port that is blocked  

## Where the Ports Are Documented

Both LDAP products open the same connections to your directory, so the firewall rules are documented once, per hop, in the [LDAP Web API firewall settings][LDAP Firewall]: the diagram of every host, and the ports between the client and the API, the API and the LDAP Catalog Server, the API and the domain controller, and, for App Service hosting, Azure. The [BizTalk LDAP Adapter firewall settings][BizTalk Firewall] show the same hops from the BizTalk Server nodes.

<div class="mermaid">
graph LR
    subgraph "Client/API Host"
        roAPI["fa:fa-cloud LDAP Web API or BizTalk Server"]
    end
    subgraph "LDAP Catalog Server"
        roLDAP["fa:fa-address-book LDAP Server"]
    end
    subgraph "Domain Controller"
        roDC["fa:fa-server DNS, Kerberos, Global Catalog"]
    end
    roAPI -->|"389 or 636"| roLDAP
    roAPI -->|"53, 88, 3268 or 3269"| roDC
</div>

*Diagram: the connections to test from the host that runs the LDAP Web API or the BizTalk LDAP Adapter.*

## Test the Ports

Run these commands on the server that runs the [LDAP Web API][] or the [BizTalk LDAP Adapter][], with the names your configuration uses.

### LDAP and LDAPS

```powershell
Test-NetConnection -ComputerName dc01.contoso.com -Port 389
Test-NetConnection -ComputerName dc01.contoso.com -Port 636
```

**Expected result:** `TcpTestSucceeded : True`. If 636 succeeds but LDAPS calls still fail, the directory's certificate is the problem, not the firewall; see [SSL-LDAPS for Active Directory][].

### Global Catalog

```powershell
Test-NetConnection -ComputerName dc01.contoso.com -Port 3268
Test-NetConnection -ComputerName dc01.contoso.com -Port 3269
```

### DNS and Kerberos

```powershell
Resolve-DnsName dc01.contoso.com
Test-NetConnection -ComputerName dc01.contoso.com -Port 88
```

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p><code>Test-NetConnection</code> tests TCP only. DNS and Kerberos also use UDP; when <code>Resolve-DnsName</code> works, UDP 53 is open.</p></div>
</aside>

## Common Errors and the Blocked Port

|Symptom|Likely blocked port|What to check|  
|---|---|---|  
|`The LDAP server is unavailable`|TCP 389 or 636 to the LDAP Catalog Server|[Firewall][LDAP Firewall] between the API host and the directory; the port in the [connection settings][LDAP Connections]|  
|LDAPS fails, LDAP works|TCP 636, or the certificate|Run the 636 test above, then the certificate checks in [SSL-LDAPS for Active Directory][]|  
|Searches across domains return nothing|[TCP 3268 or 3269][LDAP Firewall] to a Global Catalog server|Global Catalog ports on the domain controller|  
|`The server cannot be found` or slow first calls|[TCP/UDP 53][LDAP Firewall]|DNS server reachable and the directory name resolvable|  
|Sign-in with the App Pool or host instance account fails|[TCP/UDP 88][LDAP Firewall]|Kerberos to the domain controller; clocks within 5 minutes|  
|REST calls to the [LDAP Web API][] time out|The API site port (443 or your [IIS][LDAP Install IIS] binding)|Inbound rule on the API host; see [HTTPS Hardening][]|  

For ports that Windows and Active Directory need between domain controllers, which the LDAP products don't use, see Microsoft's [Service overview and network port requirements](https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/service-overview-and-network-port-requirements)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>.

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-shield-check" aria-hidden="true"></i> [LDAP Web API firewall settings][LDAP Firewall]  
* <i class="fal fa-lock" aria-hidden="true"></i> Configure [SSL-LDAPS for Active Directory][] for secure LDAP communication  
* <i class="fal fa-binary-lock" aria-hidden="true"></i> Review [HTTPS Hardening][] for securing the LDAP Web API  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* [LDAP Web API Overview][LDAP Web API]  
* [BizTalk LDAP Adapter Overview][BizTalk LDAP Adapter]  
* [BizTalk LDAP Adapter firewall settings][BizTalk Firewall]  
* [HTTPS Hardening][]  
* [SSL-LDAPS for Active Directory][]  

[BizTalk Firewall]:https://docs.nodinite.com/biztalk-ldap-adapter/getting-started/prerequisites/#fa-shield-check-what-firewall-settings-are-required-for-the-biztalk-ldap-adapter
[BizTalk LDAP Adapter]:https://docs.nodinite.com/biztalk-ldap-adapter/overview/
[HTTPS Hardening]:https://docs.nodinite.com/ldap-web-api/troubleshooting/https-hardening-your-environment/
[LDAP Connections]:https://docs.nodinite.com/ldap-web-api/getting-started/configuration/#connection-information
[LDAP Firewall]:https://docs.nodinite.com/ldap-web-api/getting-started/prerequisites/#fa-shield-check-what-firewall-settings-are-required-for-the-nodinite-ldap-web-api
[LDAP Install IIS]:https://docs.nodinite.com/ldap-web-api/getting-started/install/#iis
[LDAP Web API]:https://docs.nodinite.com/ldap-web-api/overview/
[SSL-LDAPS for Active Directory]:https://docs.nodinite.com/ldap-web-api/troubleshooting/ssl-ldaps-for-active-directory/