PortScan › Port guide › Port 135

Port 135 (MS-RPC): A Sign Your Windows PC Is Exposed to the Internet

TCP 135MS-RPCWindowsExposure risk: High

Port 135 is the Windows RPC endpoint mapper. It should never be open to the internet; the 2003 Blaster worm spread through it. How to check it and how to close it.

What is port 135?

Port 135 is the Windows RPC (Remote Procedure Call) endpoint mapper. It acts as an information desk that tells clients which port each of Windows' remote management features (WMI, DCOM, remote service control, etc.) is listening on.

On a Windows PC or server, port 135 being open on the internal network is unremarkable. The problem is when it is visible from the internet. That happens with a router's DMZ setting, a PC that receives a public IP directly, or a cloud Windows server with its firewall turned off.

When it is normally open

Risks if it is open

A worm propagation path

In 2003 the Blaster worm infected Windows PCs worldwide through a DCOM RPC vulnerability on this port (MS03-026). Ports 135, 139 and 445 are still the top entry points for attacks on Windows.

Internal information disclosure

Querying RPC endpoints can reveal information such as the PC name and running services.

Security checklist

How to check whether port 135 is open

From outside (is it exposed to the internet?)

Whether your server or home router accepts port 135 from the internet can only be confirmed by connecting from outside. A check from inside the same network bypasses the router's firewall and gives a different answer.

PortScan opens a real TCP connection from the Cloudflare edge and reports Open, Closed or Filtered. Members can scan every port on their own IP for free and other targets free once a day.

Check port 135

On the server (what is listening?)

Windows (PowerShell):

netstat -ano | findstr ":135 "
Get-NetTCPConnection -LocalPort 135 -State Listen | Select LocalAddress,OwningProcess

Linux:

sudo ss -tlnp | grep ':135 '

If it listens on 0.0.0.0 or [::] it is open on every network; 127.0.0.1 means only that machine can connect. To test port 135 on a server from another computer, use Test-NetConnection server-address -Port 135 on Windows or nc -vz server-address 135 on Linux and macOS.

How to close or restrict port 135

The best fix is to turn the service off or make it listen only on 127.0.0.1 (see the checklist above). If you need the service but must keep it off the internet, use a firewall.

Windows Firewall

# Administrator PowerShell
New-NetFirewallRule -DisplayName "Block TCP 135" -Direction Inbound -Protocol TCP -LocalPort 135 -Action Block
# To allow a single IP instead (block rules take precedence, so use this instead of the rule above)
New-NetFirewallRule -DisplayName "Allow TCP 135 from office" -Direction Inbound -Protocol TCP -LocalPort 135 -RemoteAddress 203.0.113.10 -Action Allow

Linux (ufw)

sudo ufw deny 135/tcp
# Allow a single IP only
sudo ufw allow from 203.0.113.10 to any port 135 proto tcp

On a cloud server, also check port 135 in the security group (inbound rules), which is separate from the OS firewall. For services running in Docker, the rules Docker creates can bypass ufw, so binding the port to localhost with -p 127.0.0.1:135:135 is the reliable option.

Router

At home or in a small office, open the router's admin page and check whether port 135 is in the port forwarding list, whether DMZ is enabled, and whether any program opened ports by itself through UPnP. If any of the three applies, port 135 on your PC is directly visible from the internet.

How to read the scan result

The verdict can depend on where you connect from. Many ISPs (including most Korean ISPs) block some ports such as 135, 139 and 445 on their network, so the same server can look Filtered from inside that network and Closed from abroad.

FAQ

I scanned my home IP and port 135 shows as Filtered
That is normal. Many ISPs (including most Korean ISPs) block 135/139/445 at the network edge. That blocking is ISP policy, though, and can vary by line and region, so keep your PC's firewall on as well.
445 SMB3389 RDP (Remote Desktop)139 NetBIOS/SMB

Last updated 2026-11-04 · Use this guide to check systems you manage. Scanning systems without permission may carry legal liability.