PortScan › Port guide › Port 25565
Port 25565 (Minecraft): How to Port Forward and Check It's Open
Port 25565 is the Minecraft Java server default. Port forwarding steps, checking from outside, why it shows Closed, plus whitelist, online-mode, RCON, Log4Shell.
What is port 25565?
A Minecraft Java Edition server accepts connections on TCP port 25565 by default. For friends to join your server from across the internet, you need to set up port forwarding so the router passes connections arriving on 25565 to the server PC. You can change the port number with server-port in server.properties.
Bedrock Edition (mobile, console and the Windows app version) works completely differently and uses UDP port 19132. Do not mix it up with settings for a Java server (see below).
The key to port forwarding is that all three of these must be right: ① the server is actually running and listening on 25565 ② the server PC's firewall allows it ③ the router forwards 25565 to that PC's internal IP. Miss any one and it shows as Closed or Filtered from outside.
When it is normally open
- Running a server on a home PC and port-forwarding it to play with friends — normal
- A Minecraft server run on a VPS or by a hosting provider
Risks if it is open
online-mode=false (account verification off)
With online-mode=false the server skips Mojang authentication, so people can join under any username. Someone logging in with an operator's (OP's) name and using their OP privileges is genuinely common. Keep the default, true.
Public servers without a whitelist
Scanners constantly sweep open 25565 ports to build server lists. Strangers suddenly showing up on a friends-only server and wrecking builds — "griefing" — usually starts this way.
RCON (25575) exposure
RCON lets you use the server console remotely, and its default port is TCP 25575. It is off by default, but if you turn it on and port-forward that port too, a single password allows every command, including op and stop. RCON is plaintext and must never be exposed across the internet.
Log4Shell (2021)
The Log4j vulnerability CVE-2021-44228, disclosed in December 2021, directly affected Minecraft Java Edition. A single chat message could trigger remote code execution on the server (and in the games of other players who saw that chat). Mojang fixed it in 1.18.1 and published JVM options and config files for older server versions. Servers still running old versions or server software (older Spigot, Paper, etc.) should be checked even today.
Security checklist
- Port forwarding (common steps on any router): ① find the server PC's internal IP (the IPv4 address in
ipconfigon Windows, e.g. 192.168.0.10) ② open your router's admin page (often192.168.0.1) ③ find the Port Forwarding / Virtual Server / NAT section ④ add a rule with the server PC as the internal IP, protocol TCP, and external and internal port 25565, then apply. - If the server PC's internal IP changes, the port forwarding points to the wrong place. Pin the server PC's address with the router's DHCP reservation (static IP assignment).
- When you first start the server on Windows and a firewall prompt appears, allow Java(TM) Platform SE binary. If you missed it, find java under Windows Defender Firewall → Allow an app, or add an inbound rule for TCP 25565.
- Whitelist: set
white-list=trueandenforce-whitelist=trueinserver.properties, then runwhitelist add playernamein the console. - Keep
online-mode=true, and give OP privileges to as few people as possible. - If you do not use RCON, leave
enable-rcon=false(the default); if you do, never port-forward 25575. - Keep the server version, server software (Paper, Spigot, Forge, etc.), plugins and mods up to date.
How to check whether port 25565 is open
Bedrock Edition servers use UDP 19132. This scanner checks TCP only, so it cannot tell whether a Bedrock server's port is open. Java Edition (TCP 25565) is checked normally.
From outside (is it exposed to the internet?)
Whether your server or home router accepts port 25565 from the internet can only be confirmed by connecting from outside. A check from inside the same network bypasses the router's firewall and gives a different answer.
PortScan opens a real TCP connection from the Cloudflare edge and reports Open, Closed or Filtered. Members can scan every port on their own IP for free and other targets free once a day.
Check port 25565On the server (what is listening?)
Windows (PowerShell):
netstat -ano | findstr ":25565 "
Get-NetTCPConnection -LocalPort 25565 -State Listen | Select LocalAddress,OwningProcess
Linux:
sudo ss -tlnp | grep ':25565 '
If it listens on 0.0.0.0 or [::] it is open on every network; 127.0.0.1 means only that machine can connect. To test port 25565 on a server from another computer, use Test-NetConnection server-address -Port 25565 on Windows or nc -vz server-address 25565 on Linux and macOS.
How to close or restrict port 25565
The best fix is to turn the service off or make it listen only on 127.0.0.1 (see the checklist above). If you need the service but must keep it off the internet, use a firewall.
Windows Firewall
# Administrator PowerShell
New-NetFirewallRule -DisplayName "Block TCP 25565" -Direction Inbound -Protocol TCP -LocalPort 25565 -Action Block
# To allow a single IP instead (block rules take precedence, so use this instead of the rule above)
New-NetFirewallRule -DisplayName "Allow TCP 25565 from office" -Direction Inbound -Protocol TCP -LocalPort 25565 -RemoteAddress 203.0.113.10 -Action Allow
Linux (ufw)
sudo ufw deny 25565/tcp
# Allow a single IP only
sudo ufw allow from 203.0.113.10 to any port 25565 proto tcp
On a cloud server, also check port 25565 in the security group (inbound rules), which is separate from the OS firewall. For services running in Docker, the rules Docker creates can bypass ufw, so binding the port to localhost with -p 127.0.0.1:25565:25565 is the reliable option.
Router
At home or in a small office, open the router's admin page and check whether port 25565 is in the port forwarding list, whether DMZ is enabled, and whether any program opened ports by itself through UPnP. If any of the three applies, port 25565 on your PC is directly visible from the internet.
How to read the scan result
- Open — something accepted a connection on port 25565. Work through the risks above.
- Closed — the packet reached the device, but nothing is listening on that port, so it was refused immediately (RST). The service is off.
- Filtered — no response. A firewall or the ISP is dropping packets, or the device is off. From an exposure point of view this is the safest state.
The verdict can depend on where you connect from. Many ISPs (including most Korean ISPs) block some ports such as 135, 139 and 445 on their network, so the same server can look Filtered from inside that network and Closed from abroad.
FAQ
- I set up port forwarding, but 25565 shows as Closed
- The most common reason is that the server is not running. Even with correct port forwarding, if no program is listening on that port the connection is refused and shows as Closed. Wait until
Doneappears in the server console, then scan again. If it shows Filtered, a firewall is usually blocking it or the port forwarding points to a different PC. - How do I check whether it's open?
- With the server running, scan your public IP on this site with
25565entered under Ports → Custom. This site's precise scan actually attempts a connection from outside your home (from Cloudflare's servers), so if it shows Open, your friends can get in too. People in the same home should connect to the server PC's internal IP instead of the public IP. - Everything looks right but it still doesn't work from outside — could it be my ISP?
- If the WAN (external) IP shown on your router's admin page differs from the IP this site shows you, you are either behind double NAT — another router in front of yours, such as an ISP modem/router combo — or on CGNAT, where your ISP shares one public IP among many subscribers. Double NAT needs port forwarding (or bridge mode) on the upstream device as well; with CGNAT or a mobile hotspot, port forwarding is impossible, so ask your ISP for a public IP or use a VPS, server hosting or a tunnelling service.
- Can friends on Bedrock Edition join?
- Not a standard Java server. Bedrock players need a separate Bedrock Dedicated Server (UDP 19132), or you need to install a cross-play plugin on the Java server. Either way, UDP 19132 must be port-forwarded separately.
Related ports
Last updated 2026-11-04 · Use this guide to check systems you manage. Scanning systems without permission may carry legal liability.