Port 111 (RPCbind): What It Is & Security Guide

May 16, 2026
Updated May 16, 2026 Port Security Guides port 111 rpcbind port 111 security what is port 111 open port 111 rpcbind security portmapper nfs security ddos amplification cve-2019-19603

What is Port 111 (RPCbind)? Understanding its Role and Security Implications

In the complex world of network services, certain ports play foundational roles, acting as gateways for critical system functions. Port 111, associated with the RPCbind service (historically known as portmapper), is one such port. It's a cornerstone for many Remote Procedure Call (RPC) based services, particularly prevalent in Unix-like environments. While essential for the operation of services like Network File System (NFS) and Network Information Service (NIS), an open or improperly secured Port 111 represents a significant security risk, making it a prime target for attackers.

This comprehensive guide will delve into the technical intricacies of Port 111 and RPCbind, explore the severe security vulnerabilities it can introduce, and provide actionable strategies for detection, hardening, and mitigation. Whether you're a system administrator, a cybersecurity professional, or simply looking to understand your network's attack surface better, securing Port 111 is a critical step in maintaining a robust security posture. Ignoring its potential dangers can lead to information disclosure, denial-of-service attacks, and even pave the way for more sophisticated system compromises.

Understanding RPCbind isn't just about knowing a port number; it's about comprehending a fundamental mechanism that underpins distributed computing. Its ability to map dynamic RPC services to specific port numbers makes it invaluable for flexibility but also a central point of potential weakness if not managed with extreme care. Let's uncover why this seemingly innocuous service demands such rigorous attention to security.

Want to check your site right now?

Port Scanner →  ·  Website Vulnerability Scanner

Port 111 Technical Details: The RPCbind Mechanism

Port 111 is the designated port for the RPCbind service, a crucial component in the architecture of Remote Procedure Call (RPC) systems. RPC allows a program to cause a procedure (subroutine or function) to execute in a different address space (typically on another computer on a shared network) without the programmer explicitly coding the remote interaction. RPCbind acts as a directory service for these RPC programs.

DetailValue
Port Number111
ProtocolTCP/UDP
ServiceRPCbind (Portmapper)
Risk LevelHigh
DescriptionRemote Procedure Call (RPC) program number to universal address mapper.

Here's how RPCbind functions:

  • Dynamic Port Allocation: Many RPC services (like NFS, NIS, Mountd, NLM, etc.) don't use fixed, well-known port numbers. Instead, they register with RPCbind when they start.
  • Mapping Service: RPCbind maintains a table that maps RPC program numbers and versions to the specific TCP or UDP port numbers on which those services are currently listening.
  • Client Discovery: When an RPC client wants to communicate with a particular RPC service on a server, it first queries the RPCbind service on Port 111 of that server.
  • Port Resolution: RPCbind responds by providing the client with the correct port number for the requested service. The client then establishes a direct connection to that specific port to interact with the service.

This dynamic allocation and mapping system offers flexibility, allowing multiple RPC services to run on a single server without port conflicts and enabling services to restart on different ports. However, this very mechanism, when exposed, provides attackers with a powerful reconnaissance tool, allowing them to enumerate all RPC services running on a target system. RPCbind listens on both TCP and UDP protocols, making it accessible via either transport layer, which further broadens its potential attack surface.

Understanding this technical foundation is paramount because it highlights why RPCbind is often the first point of interaction for an attacker attempting to compromise RPC-based systems. It's the central registry that reveals the presence and location of other, potentially vulnerable, services.

Security Risks of Open Port 111

An open Port 111, especially one exposed to the internet or an untrusted network segment, presents a high security risk. The RPCbind service, by its very nature, provides information about other services running on a system, making it a valuable target for attackers. The risks range from information disclosure to direct involvement in denial-of-service attacks and facilitating more complex exploits.

Common Attacks on Port 111

Attackers frequently target Port 111 due to its central role in RPC service discovery and its potential for abuse. Understanding these common attack vectors is crucial for developing effective defense strategies.

How to Check if Port 111 is Open

Identifying whether Port 111 is open on your systems is the first step in assessing your exposure. Several tools can help you perform this check, ranging from command-line utilities to online scanners. It's crucial to scan from an external perspective (e.g., from the internet) to see what's truly exposed, as well as from within your network.

Using Nmap (Network Mapper)

Nmap is the industry-standard tool for network discovery and security auditing. It can quickly determine if Port 111 is open and even enumerate the services registered with RPCbind.

To check if Port 111 is open on a target:

nmap -p 111 <target_IP_or_hostname>

Example output for an open port:

PORT    STATE SERVICE
111/tcp open rpcbind
111/udp open rpcbind

To get more detailed information, including the RPC services registered with RPCbind, you can use Nmap's service version detection and RPC-specific scripts:

nmap -sV -p 111 <target_IP_or_hostname>

Or, to specifically run the rpcinfo script:

nmap -p 111 --script=rpcinfo <target_IP_or_hostname>

This will provide a list similar to what `rpcinfo -p` would show, detailing RPC program numbers, versions, and associated ports.

Using rpcinfo

The `rpcinfo` utility is a standard command-line tool available on most Unix-like systems for querying RPC services directly.

To query RPCbind on a target:

rpcinfo -p <target_IP_or_hostname>

Example output:

   program vers proto   port  service
100000 4 tcp 111 rpcbind
100000 3 tcp 111 rpcbind
100000 2 tcp 111 rpcbind
100000 4 udp 111 rpcbind
100000 3 udp 111 rpcbind
100000 2 udp 111 rpcbind
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100005 1 udp 600 mountd
100005 3 udp 600 mountd
100021 1 tcp 32770 nlockmgr

This output clearly shows RPCbind itself, along with NFS, Mountd, and NLM (Network Lock Manager) services and their respective ports.

Using Online Port Scanners

For a quick external check without installing tools, you can use online port scanners. These tools allow you to input an IP address or hostname and check specific ports from various locations on the internet.

You can easily scan port 111 with our free online tool: Scan port 111 with our free tool. This provides a convenient way to see if your firewall rules are effectively blocking external access to RPCbind.

Regularly checking for open ports, especially critical ones like 111, is a fundamental practice in maintaining network security. It helps you identify and address potential vulnerabilities before they can be exploited by malicious actors.

Free Security Tools

Scan your website, check open ports, find subdomains — no signup required.

See all tools →

How to Secure Port 111 (RPCbind)

Securing Port 111 is paramount for protecting systems that rely on RPC services. Given its high-risk profile, a multi-layered approach involving firewalls, service configuration, and regular patching is essential. The goal is to minimize exposure and restrict access to only legitimate, trusted sources.

When Should Port 111 Be Open? Legitimate Use Cases

Despite the significant security risks, Port 111 (RPCbind) is not inherently malicious. It serves a legitimate and crucial function in environments that rely on Remote Procedure Call (RPC) services. The key is to understand these legitimate use cases and ensure that RPCbind is only open when absolutely necessary and under strictly controlled conditions.

Port 111 must be open and accessible on a server if that server is hosting any of the following common RPC-based services:

  • Network File System (NFS) Servers: NFS is a distributed file system protocol that allows a user on a client computer to access files over a computer network much like local storage is accessed. NFS relies heavily on RPCbind to register and discover its various components (e.g., `mountd`, `nfsd`, `statd`, `lockd`). If you are running an NFS server and clients need to connect to it, RPCbind must be active and accessible to those clients.
  • Network Information Service (NIS/YP) Servers: NIS (formerly Yellow Pages or YP) is a client-server directory service protocol for distributing system configuration data such as user and host names between computers on a computer network. NIS servers use RPCbind to make their services discoverable by NIS clients.
  • Other Custom RPC-based Applications: Some legacy or specialized applications might utilize RPC for inter-process communication across a network. If your environment includes such custom applications that are designed to register with RPCbind, then Port 111 would need to be open for their proper functioning.

Critical Considerations for Legitimate Use:

  • Internal Networks Only: In almost all legitimate scenarios, Port 111 should only be accessible from within a trusted internal network. It should *never* be directly exposed to the public internet.
  • Strict Firewall Rules: Even within an internal network, access to Port 111 should be restricted to only the specific client machines or subnets that require it. Implement granular firewall rules to enforce this.
  • Secure the Mapped Services: RPCbind is merely a directory. The actual security posture depends heavily on the services it maps (e.g., NFS shares). Ensure these services are configured securely, use strong authentication where available (e.g., Kerberos for NFSv4), and are regularly patched.
  • Least Privilege: Only enable RPCbind and its associated services on servers that absolutely require them. If a server is not an NFS or NIS server, disable RPCbind.

In summary, Port 111 should only be open if your system explicitly provides RPC-based services to other machines. Even then, its exposure must be tightly controlled and limited to trusted internal clients, never directly to the internet. Prioritize disabling or blocking it unless there's a clear, documented, and secured operational requirement.

Is port 111 dangerous?

Yes, Port 111 is considered highly dangerous if left open and exposed, especially to the internet. It allows attackers to enumerate all RPC services running on your system, which is a critical first step in many attack chains. Furthermore, it can be abused for DDoS amplification attacks, making your server an unwitting participant in attacks against others. While RPCbind itself might not always have direct remote code execution vulnerabilities, its role in revealing other services makes it a significant security risk.

Should I close port 111?

In most cases, yes, you should close or severely restrict access to Port 111. If your system does not function as an NFS server, NIS server, or host other RPC-dependent services, then RPCbind is not needed and should be disabled or uninstalled. If RPC services are required, Port 111 should only be accessible from trusted internal networks or specific, authorized IP addresses, never directly from the public internet. Implementing strict firewall rules to limit access is crucial.

How do I block port 111?

You can block Port 111 using your system's firewall. Here are common commands:

Using iptables (Linux):

sudo iptables -A INPUT -p tcp --dport 111 -j DROP
sudo iptables -A INPUT -p udp --dport 111 -j DROP
sudo netfilter-persistent save # To make rules permanent

Using UFW (Uncomplicated Firewall - Ubuntu/Debian):

sudo ufw deny 111/tcp
sudo ufw deny 111/udp
sudo ufw enable # If UFW is not already enabled

Alternatively, if the service is not needed, you can stop and disable RPCbind:

sudo systemctl stop rpcbind
sudo systemctl disable rpcbind

What runs on port 111 by default?

By default, the RPCbind service (also known as portmapper) runs on Port 111. RPCbind is a directory service for Remote Procedure Call (RPC) programs. It maps RPC program numbers to the specific TCP or UDP port numbers on which those services are listening. Services like Network File System (NFS), Network Information Service (NIS), Mountd, and Network Lock Manager (NLM) register with RPCbind to make themselves discoverable by clients.

Scan for these vulnerabilities

Secably automatically detects the issues discussed in this article.

Start Free Scan