Port 2049: NFS
TCP/UDP 2049 is the port for Network File System. Never on the internet.
| Service | Network File System |
|---|---|
| Protocol | TCP/UDP |
| Exposure risk | High: do not expose to the internet |
| Range | Registered (1024–49151) |
What port 2049 does
Unix and Linux file sharing. NFSv4 needs only 2049; older versions also need rpcbind on 111 and several dynamic ports.
Should port 2049 be open?
Never on the internet.
Find what's listening on port 2049
- Linux:
sudo ss -tulpn | grep :2049 - macOS:
sudo lsof -nP -i :2049 - Windows:
netstat -ano | findstr :2049, then look up the PID in Task Manager.
Open or block it in a firewall
- ufw:
sudo ufw allow 2049/tcp(ordeny) - firewalld:
sudo firewall-cmd --add-port=2049/tcp --permanent && sudo firewall-cmd --reload - Windows:
New-NetFirewallRule -DisplayName "Port 2049" -Direction Inbound -Protocol TCP -LocalPort 2049 -Action Allow
Port assignment per the IANA Service Name and Transport Protocol Port Number Registry. Test several ports at once with the port scanner, or any port with the open port checker.
Questions about port 2049
What is port 2049 used for?
Network File System. Unix and Linux file sharing. NFSv4 needs only 2049; older versions also need rpcbind on 111 and several dynamic ports.
Is port 2049 TCP or UDP?
Both. NFS uses TCP and UDP on port 2049.
Is it safe to open port 2049?
High: do not expose to the internet. Never on the internet.
How do I check if port 2049 is open?
Use the checker on this page: it connects to your host on TCP 2049 from the internet. Locally, run
nc -vz host 2049 (macOS/Linux) or Test-NetConnection host -Port 2049 (PowerShell). To see what is listening on your own machine, run ss -tulpn | grep :2049 (Linux) or netstat -ano | findstr :2049 (Windows).