HTTPfy

Port 25565 (Minecraft Java Edition)

Default port of Minecraft Java Edition servers (Bedrock uses UDP 19132).

Registered (user) port, 1024-49151 TCP Games Meant to face the internet

What port 25565 is used for

Default port of Minecraft Java Edition servers (Bedrock uses UDP 19132).

Security: should port 25565 be open?

Meant to face the internet. Enable online-mode and a whitelist for private servers; scanners index open servers. Keep RCON (25575) private.

IANA assignment

Port 25565 is in the registered range and has no IANA assignment. The usage above is unofficial but widespread.

Check what is listening on port 25565

Linux: is anything listening on TCP 25565?
sudo ss -tlnp 'sport = :25565'
Linux / macOS: which process owns the port
sudo lsof -nP -i :25565
Older Linux / BSD (net-tools)
sudo netstat -tlnp | grep ':25565 '
Windows (Command Prompt)
netstat -ano | findstr :25565
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 25565 -State Listen | Select LocalAddress,OwningProcess

Test it from outside

From another machine
nc -vz -w 5 HOST 25565
From Windows
Test-NetConnection HOST -Port 25565

Open port 25565 in the firewall

ufw
sudo ufw allow 25565/tcp
iptables
sudo iptables -A INPUT -p tcp --dport 25565 -j ACCEPT
nftables
sudo nft add rule inet filter input tcp dport 25565 accept
Windows Firewall
New-NetFirewallRule -DisplayName 'Allow TCP 25565' -Direction Inbound -Protocol TCP -LocalPort 25565 -Action Allow

Related ports

All port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.