Skip to content

How to Fix Active Directory Replication Error 1722: The RPC Server Is Unavailable

A practical, step-by-step guide to diagnosing and fixing Active Directory replication error 1722 — the RPC server is unavailable — from DNS to firewall to RPC ports.

MGMCSA Guru Team May 20, 2026 7 min read

Last updated May 28, 2026

Diagram-style cover: a source domain controller reaching a target DC through DNS, the RPC endpoint mapper on port 135, and the dynamic RPC port range

Few errors make a domain administrator’s stomach drop quite like opening repadmin /showrepl and seeing a wall of red 1722 results. Replication has stopped, the clock is ticking on your tombstone lifetime, and the message — “The RPC server is unavailable” — is about as vague as Windows errors get.

The good news: error 1722 is almost always a network or name-resolution problem, not a sign that Active Directory itself is corrupt. Work through the causes in the right order and you can usually find it in a few minutes. This guide walks through that order, from the most common cause to the least.

What error 1722 really means

1722 is a generic Remote Procedure Call (RPC) error. It is not specific to Active Directory — you will see the same code from print spoolers, WMI, and other RPC-based services. In the context of replication, it means one domain controller tried to open an RPC channel to another DC and could not.

Replication between DCs rides on RPC. Before any directory data moves, the source DC has to:

  1. Resolve the partner DC’s name to an IP address (DNS).
  2. Reach the RPC endpoint mapper on TCP port 135.
  3. Get back a dynamic port to use for the actual replication traffic.
  4. Open a connection on that dynamic port.

Break any one of those steps and you get 1722. So the troubleshooting is really about finding which step is failing.

Where 1722 comes from
flowchart LR
A["Source DC"] -->|1. DNS lookup| B["Resolve partner FQDN<br/>+ GUID._msdcs record"]
B -->|2. TCP 135| C["RPC Endpoint Mapper<br/>on target DC"]
C -->|3. returns dynamic port| D["Dynamic RPC port<br/>49152-65535"]
D -->|4. replicate| E["Target DC"]
Replication fails with 1722 if DNS, the endpoint mapper, or the dynamic RPC port can't be reached.

First, confirm and locate the failure

Before changing anything, get a clear picture of which DCs and which directions are failing. Run these from an elevated prompt on any healthy DC:

repadmin /replsummary
repadmin /showrepl

replsummary gives you a quick table of largest deltas and failures. showrepl lists every inbound replication partner and the last result per naming context. Note exactly which source DC is throwing 1722 and for which partner — you will test that specific path.

Cause 1: DNS (check this first, always)

The single most common cause of 1722 is name resolution. A DC locates its partners using special records in the _msdcs zone, keyed by each DC’s object GUID. If those records are missing, stale, or pointing at an old IP, the source DC tries to talk to the wrong host — or no host — and RPC fails.

From the destination DC, test DNS health:

dcdiag /test:dns /v
nltest /dsgetdc:yourdomain.local

Then confirm you can resolve the partner’s GUID-based CNAME. You’ll find the GUID in repadmin /showrepl output. The record looks like:

<DC-GUID>._msdcs.yourdomain.local

Resolve it explicitly:

nslookup <DC-GUID>._msdcs.yourdomain.local

DNS checks for 1722

  • Each DC points to a valid internal DNS server (not only itself, never only a public resolver)
  • The partner DC's A record resolves to its current IP
  • The GUID._msdcs CNAME resolves and points to the correct A record
  • No stale records from a decommissioned DC remain in the zone
  • dcdiag /test:dns passes on both DCs

If DNS is wrong, fix it, then force replication and re-test:

repadmin /syncall /AdeP

Roughly half of all 1722 cases end right here. If DNS is clean, move on.

Cause 2: Firewall blocking RPC

If names resolve correctly but RPC still won’t connect, suspect a firewall — the Windows firewall on a DC, or more often a hardware firewall between sites. The trap is that ping and basic LDAP can succeed while RPC is still blocked, because RPC needs the endpoint mapper and a high dynamic port.

These are the ports AD replication needs:

Ports required for AD replication

TCP 135 RPC Endpoint Mapper — the first contact point
TCP 49152–65535 Dynamic RPC range (Windows 2008+) used for the actual replication
TCP/UDP 389 LDAP
TCP 636 LDAP over SSL
TCP 3268 / 3269 Global Catalog (and GC over SSL)
TCP/UDP 88 Kerberos authentication
TCP/UDP 53 DNS
TCP 445 SMB (SYSVOL / FRS-DFSR)

Test the endpoint mapper and the dynamic range from the destination DC toward the source. The PortQry tool is purpose-built for this:

portqry -n <source-DC> -e 135

A healthy result lists the RPC services and the dynamic ports they’re listening on. If port 135 is filtered, or the returned dynamic port is unreachable, you’ve found your firewall problem.

If you need a predictable port range across a restrictive firewall, you can pin the AD replication RPC port. Plan that change carefully and apply it consistently across all DCs, as it requires a reboot to take effect.

Cause 3: Services, time, and secure channel

If DNS and firewall both check out, look at the target DC itself.

Services. Confirm these are running on the source DC: Active Directory Domain Services, DNS Server, Kerberos Key Distribution Center, RPC Endpoint Mapper, and Netlogon. A hung service produces 1722 even on a perfectly healthy network.

Time skew. Kerberos rejects authentication when clocks differ by more than five minutes (default). Severe time skew shows up as replication and authentication failures together. Check with:

w32tm /monitor

Secure channel. A broken machine secure channel can also masquerade as RPC failures. Verify it:

nltest /sc_verify:yourdomain.local

Target DC health checks

  • AD DS, DNS, KDC, RPC, and Netlogon services are running
  • Time skew between DCs is under 5 minutes (w32tm /monitor)
  • nltest /sc_verify reports a healthy secure channel
  • dcdiag passes its core connectivity and services tests
  • No disk-full or NTDS database errors in the Directory Service event log

Putting it together: the fast path

When you hit 1722 under pressure, this is the order that finds it quickest:

  1. repadmin /replsummary and /showrepl — pinpoint the failing source → destination pair.
  2. From the destination, resolve the source’s A record and its GUID._msdcs CNAME.
  3. dcdiag /test:dns on both DCs.
  4. portqry -e 135 against the source — confirm the endpoint mapper and a reachable dynamic port.
  5. Check services, time skew, and secure channel on the source.
  6. Fix the cause, then repadmin /syncall /AdeP and re-run /showrepl.

Wrapping up

Active Directory replication error 1722 looks intimidating but it’s really a connectivity puzzle with a short list of suspects: DNS first, firewall and RPC ports second, then the target DC’s services, time, and secure channel. Work them in that order, confirm each layer before moving on, and you’ll resolve the vast majority of cases without touching the directory database itself.

If you maintain more than one or two domain controllers, it’s worth building these checks into a routine health script so you catch replication drift before it becomes a red wall of 1722.

Frequently asked questions

What does Active Directory replication error 1722 actually mean?

Error 1722 is a generic Windows RPC error — 'the RPC server is unavailable'. In an AD context it means one domain controller could not open an RPC connection to another to perform replication. The root cause is almost always network: DNS resolving to the wrong host, a firewall blocking RPC, or the target DC's services not responding.

Which ports does Active Directory replication need open?

TCP 135 for the RPC endpoint mapper, TCP 389/636 and 3268/3269 for LDAP, TCP/UDP 53 for DNS, TCP 88 for Kerberos, and the dynamic RPC range (by default 49152–65535 on modern Windows). If a firewall blocks the dynamic range, replication fails with 1722 even though ping works.

Is error 1722 a DNS problem or a firewall problem?

It can be either, and DNS is the more common culprit. Start by confirming each DC can resolve the other's fully qualified name and its CNAME (GUID._msdcs record), then move on to firewall and RPC port checks if DNS is clean.

Can I just reboot the domain controller to fix 1722?

Sometimes a reboot clears a stuck service, but it rarely fixes the underlying cause. If the problem is DNS, firewall, or a blocked RPC range, it will come straight back. Diagnose first so the fix actually sticks.

Sources & further reading

Official vendor documentation referenced while writing this guide.

MG

MCSA Guru Team

IT & Systems Administration

We are working IT pros and system administrators who spend our days in Windows Server, Microsoft 365, and the wider Microsoft stack. MCSA Guru is where we write down the fixes and walkthroughs we wish we had found the first time.

MCSA Guru provides independent, educational IT guidance. Microsoft, Windows, Windows Server, Microsoft 365, Exchange, and Microsoft Teams are trademarks of Microsoft Corporation; Docker is a trademark of Docker, Inc. MCSA Guru is not affiliated with or endorsed by Microsoft or Docker. Always test changes in a safe environment before applying them in production.

Related guides

Fixing something right now?

Jump straight into the guide library or search for the exact error or task you are dealing with.