The “RPC server is unavailable” error in Windows typically means your computer cannot communicate with the Remote Procedure Call (RPC) service, which Windows relies on for many background tasks. The fix usually involves restarting the RPC service, checking the RPC Endpoint Mapper, or adjusting firewall and network settings—steps you can complete in a few minutes without advanced tools.
What Is the RPC Server?
Remote Procedure Call (RPC) is a protocol that allows one program on your PC to request a service from another program—either on the same machine or across a network. Windows uses RPC constantly: for example, when you open Device Manager, when Windows Update checks for patches, or when you share a printer with another computer. The RPC service (named “Remote Procedure Call (RPC)” in the Services window) must be running and set to Automatic for these tasks to work.
When you see “RPC server is unavailable,” it often means the RPC service itself has stopped, the RPC Endpoint Mapper (which tells clients where to find RPC services) is not responding, or a firewall is blocking the required ports. The error can appear in many places: in Event Viewer, when accessing network shares, when opening certain Control Panel items, or during software installation.
Common Causes of the Error
- RPC service stopped or disabled – The service may have crashed or been set to Manual/Disabled by a misbehaving program or a recent update.
- RPC Endpoint Mapper disabled – This service (also named “RPC Endpoint Mapper”) is required for clients to locate RPC endpoints; if it is off, RPC calls fail.
- Firewall blocking ports 135 and 49152–65535 – Windows Firewall or third-party security software can block the dynamic ports RPC uses.
- Network discovery or file sharing disabled – If you are trying to access a remote computer, these settings must be enabled.
- Corrupted system files – A damaged registry or system file can break RPC registration.
- Third-party security software – Some antivirus or firewall tools interfere with RPC traffic.
How to Fix the RPC Server Unavailable Error
Follow these steps in order. Most users resolve the issue at step 1 or 2.
- Restart the RPC services
- Press Win + R, type
services.msc, and press Enter. - Find Remote Procedure Call (RPC). Right-click it and select Restart. If it is not running, right-click and choose Start.
- Do the same for Remote Procedure Call (RPC) Locator and RPC Endpoint Mapper (if present).
- Double-click each service, set Startup type to Automatic, and click OK.
- Press Win + R, type
- Check the DCOM Server Process Launcher
- In the same Services window, find DCOM Server Process Launcher. It should be running and set to Automatic.
- If it is stopped, right-click and start it. This service is a dependency for RPC.
- Run the System File Checker
- Open Command Prompt as administrator (search for “cmd”, right-click, and choose “Run as administrator”).
- Type
sfc /scannowand press Enter. Wait for the scan to finish (it can take 10–15 minutes). - If it finds errors, restart your PC and check if the issue persists.
- Adjust firewall settings
- If you have a third-party firewall, temporarily disable it to test. If the error goes away, add an exception for RPC (ports 135 and the dynamic range 49152–65535).
- For Windows Firewall, go to Control Panel > Windows Defender Firewall > Allow an app or feature through Windows Defender Firewall. Ensure Remote Assistance and Remote Service Management are allowed for Private networks.
- Enable network discovery and file sharing
- Go to Control Panel > Network and Sharing Center > Advanced sharing settings.
- Turn on Network discovery and File and printer sharing for the current network profile.
- Repair the registry (advanced)
- If the error persists, the RPC registry keys may be corrupted. Only attempt this if you are comfortable with the Registry Editor. Back up the registry first.
- Navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RpcSsand verify theStartvalue is2(Automatic) andImagePathis%SystemRoot%\system32\svchost.exe -k rpcss. - If you are unsure, run the Windows built-in DISM tool:
DISM /Online /Cleanup-Image /RestoreHealthin an elevated Command Prompt.
What to Try If the Error Persists
If the above steps do not work, the problem may be specific to the application you are using. For example, if you see the error when opening a network drive, try mapping the drive using its IP address instead of the computer name. If it happens in a specific program (like a database client), reinstall that program or check its documentation for RPC-related settings.
Another common cause is a misconfigured DNS or a network that blocks RPC. Try connecting to the remote computer using its IP address: \\192.168.1.10\shared instead of \\COMPUTERNAME\shared. If that works, the issue is name resolution, not RPC itself.
You can also check the Event Viewer (eventvwr.msc) under Windows Logs > System for errors with source “RPC” or “DCOM”. The error details often point to the exact component that failed.
How to Prevent the Error from Returning
- Keep Windows and your drivers updated—updates often fix RPC-related bugs.
- Do not disable RPC services to “speed up” your PC; many Windows features depend on them.
- If you use third-party security software, whitelist RPC traffic or use the vendor’s recommended settings for Windows networking.
- Regularly run
sfc /scannowif you suspect system file corruption.
Frequently Asked Questions
Why does “RPC server is unavailable” appear when I open Device Manager?
Device Manager uses RPC to communicate with the Plug and Play service. If the RPC service is stopped or the DCOM launcher is disabled, Device Manager cannot load. Restart the RPC service and the DCOM Server Process Launcher as described above.
Can a VPN cause the RPC server unavailable error?
Yes. VPN software can alter network routing or firewall rules, blocking RPC ports. Disconnect the VPN and test. If the error goes away, configure the VPN to allow RPC traffic or use split tunneling.
Is it safe to change the RPC service startup type to Automatic?
Yes. RPC is a core Windows service, and setting it to Automatic is the default and recommended configuration. It does not pose a security risk; Windows only listens on RPC ports when needed, and a firewall should still block unauthorized access.
Will restarting the RPC service affect my open programs?
Potentially. Some programs that rely on RPC may temporarily lose functionality or need to be restarted. For example, a network share may disconnect. Save your work before restarting the service.
What if the RPC service is missing from Services?
If the service is missing, your system may be seriously corrupted. Run sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth in an elevated Command Prompt. If that does not restore it, consider a system restore or repair install using Windows installation media.
Does this error affect Windows 10 and Windows 11 the same way?
Yes, the underlying RPC mechanism is the same in both versions. The steps in this guide apply to Windows 10 and Windows 11. The Services window and firewall settings are nearly identical.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Hogwarts Legacy Microsoft Visual C Runtime Error Fix
- Set Up UPI Payments Through WhatsApp
- Pair Oppo Enco Earbuds with Android, iPhone & Windows
- Fix Administrator Account Disabled Error in Windows 11
- How to Play Kodi on Smart TV from PC
- How to Change Password in Linux (Command Line)