Port 25565 is the default port for Minecraft Java Edition servers. Bedrock Edition uses UDP 19132 instead. It is normally meant to be reachable from the internet.
- Port
- 25565
- Protocol
- TCP
- Service
- Minecraft Java Edition server
- Expose to internet?
- Yes, usually
- Also used by
- Paper, Spigot, Fabric, Velocity/BungeeCord proxies
Is port 25565 safe to open?
A public Minecraft server has to be reachable, and scanners continually find servers on 25565. The risks are griefing on servers with online-mode=false (anyone can claim any username), exposed RCON, outdated server software and plugins, and DDoS.
How to secure Minecraft Java Edition server
- Keep
online-mode=truein server.properties unless a proxy handles authentication. - Use a whitelist (
white-list=trueandenforce-whitelist=true) for private servers. - Keep RCON disabled (
enable-rcon=false) or bind it to localhost with a strong password. - Run the server as an unprivileged user and keep server software and plugins updated.
Check if port 25565 is open
Linux: what is listening on this port
sudo ss -tlpn | grep ':25565 'Windows (PowerShell): what is listening
Get-NetTCPConnection -LocalPort 25565 -State Listen | Select-Object LocalAddress, OwningProcess, @{n='Process';e={(Get-Process -Id $_.OwningProcess).Name}}From another machine: is it reachable
nc -zv HOST 25565
# or
nmap -p 25565 HOST
# Windows
Test-NetConnection HOST -Port 25565Open port 25565 in the firewall
ufw (Ubuntu, Debian)
sudo ufw allow 25565/tcpfirewalld (RHEL, Rocky, Alma, Fedora)
sudo firewall-cmd --permanent --add-port=25565/tcp
sudo firewall-cmd --reloadWindows Firewall (PowerShell, as Administrator)
New-NetFirewallRule -DisplayName "Allow 25565/TCP" -Direction Inbound -Protocol TCP -LocalPort 25565 -Action AllowMonitor port 25565
Add a TCP port monitor for 25565 and Statance connects to it from up to six regions, alerting you by email, Slack, Discord or PagerDuty when Minecraft Java Edition server stops answering. TCP port monitoring.
Related ports
FAQ
How do I open port 25565 for a Minecraft server?
Allow TCP 25565 in the server’s firewall (for example sudo ufw allow 25565/tcp) and, on a home network, forward TCP 25565 on your router to the machine running the server.
What is port 25565 used for?
Port 25565 is the default port for Minecraft Java Edition servers. Bedrock Edition uses UDP 19132 instead. It is also used by Paper, Spigot, Fabric, Velocity/BungeeCord proxies.
Is port 25565 TCP or UDP?
Minecraft Java Edition server uses TCP on port 25565.
How do I check if port 25565 is open?
On the server, run sudo ss -tulpn | grep ':25565 ' (Linux) or Get-NetTCPConnection -LocalPort 25565 (Windows) to see what is listening. From another machine, run nc -zv HOST 25565 or Test-NetConnection HOST -Port 25565.
Know the moment a port stops answering.
TCP, HTTP, DNS and SSL checks from six regions, plus server metrics from a one-line agent.