Common attacks and weaknesses
- Server-side plugin vulnerabilities (Log4Shell hit Minecraft first).
- DDoS.
Default Minecraft Java Edition server port.
The game client and server exchange small updates many times per second over port 25565. It travels in clear text: anyone on the path can read it.
Unofficial use. The IANA assignment below differs from what is usually found on this port in practice.
No entry. The port is free for any application, so check what uses it on your hosts.
// source: IANA service name and port number registry
Linux
sudo ss -ltnup 'sport = :25565' # process listening on 25565
sudo lsof -nP -i :25565macOS
sudo lsof -nP -i :25565
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 25565 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 25565 netstat -ano | findstr :25565
From another machine
nmap -p 25565 -sV <host> nc -zv <host> 25565
Block it in the firewall
sudo ufw deny 25565/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 25565" -Direction Inbound -LocalPort 25565 -Protocol TCP -Action Block # Windows
Default Minecraft Java Edition server port.
Port 25565 is registered for TCP.
It is rated 3/10 (moderate) when exposed to the Internet. Server-side plugin vulnerabilities (Log4Shell hit Minecraft first). Keep the server and plugins updated; enable online-mode and a whitelist.
On Linux run "ss -ltnup 'sport = :25565'", on macOS "lsof -nP -i :25565", and on Windows "netstat -ano | findstr :25565" to see the local process. From another machine, "nmap -p 25565 <host>" shows whether it is reachable.