Port 135: Microsoft RPC endpoint mapper

Port 135 (TCP/UDP) is used by Microsoft RPC endpoint mapper. Windows DCOM and RPC services locate each other here. Block at the network edge.

135Port
TCP/UDPProtocol
epmapIANA service name
Windows networkingCategory

Port range

135 is a well-known (system) port (range 0–1023). On Linux and macOS, binding to it traditionally needs root or the CAP_NET_BIND_SERVICE capability.

Security

Port 135 should not be reachable from the public internet. Restrict it to trusted networks or a VPN, and scan your public IP to confirm it is closed.

Open port 135 in a firewall

ufw         sudo ufw allow 135/tcp
            sudo ufw allow 135/udp
iptables    sudo iptables -A INPUT -p tcp --dport 135 -j ACCEPT
            sudo iptables -A INPUT -p udp --dport 135 -j ACCEPT
firewalld   sudo firewall-cmd --permanent --add-port=135/tcp
            sudo firewall-cmd --permanent --add-port=135/udp
Windows     New-NetFirewallRule -DisplayName "Microsoft RPC endpoint mapper 135" -Direction Inbound -Protocol TCP -LocalPort 135 -Action Allow

Check if port 135 is open

nc -vz example.com 135
Test-NetConnection example.com -Port 135   # PowerShell
sudo ss -tulpn | grep ':135 '   # what is listening locally (Linux)

Other windows networking ports

Frequently asked questions

What is port 135 used for?
Microsoft RPC endpoint mapper. Windows DCOM and RPC services locate each other here. Block at the network edge.
Is port 135 TCP or UDP?
Both are assigned. Check which one your software actually listens on.