Port 2
no service name · TCP/UDP
| Range | System/well-known port (0–1023) |
|---|---|
| Protocol | TCP/UDP |
| Service | no service name |
| Modified | 2025-02-13 |
Frequently asked questions
What is port 2 used for?
Port 2 is registered with the IANA for no service name (TCP/UDP). Description: Reserved.
Is port 2 a well-known port?
Yes. Port 2 is in the range 0–1023 (system or well-known ports). On Linux and macOS only privileged processes may bind to these ports.
How do I check whether port 2 is open?
Locally on Linux with ss -tulpn | grep ':2\b', on Windows with netstat -ano | findstr :2. To test a remote host use Test-NetConnection <host> -Port 2 in PowerShell or nc -zv <host> 2 on Linux/macOS.
How do I open port 2 in the firewall?
Ubuntu/Debian (ufw): sudo ufw allow 2/tcp. Fedora/RHEL (firewalld): sudo firewall-cmd --add-port=2/tcp --permanent, then firewall-cmd --reload. Windows (PowerShell as administrator): New-NetFirewallRule -DisplayName "Port 2" -Direction Inbound -Protocol TCP -LocalPort 2 -Action Allow.
IANA registry entries
| Protocol | Service | Description (IANA) |
|---|---|---|
| TCP | – | Reserved |
| UDP | – | Reserved |