Port 2049: NFS

TCP/UDP 2049 is the port for Network File System. Never on the internet.

Port 2049 at a glance
ServiceNetwork File System
ProtocolTCP/UDP
Exposure riskHigh: do not expose to the internet
RangeRegistered (1024–49151)

Your public IP is pre-filled. The test connects over TCP from NetKit's server, so it shows what the internet sees.

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 (or deny)
  • 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).

← Port 1883 (MQTT) · Port 3000 (Dev server) →