Minecraft
Minecraft server port guide: multiplayer on port 25565
Understand how Minecraft Java servers use TCP 25565, how Bedrock differs, how to set up port forwarding, and how to keep a public server stable.
- Default port
- 25565
- Protocol
- TCP
- Primary use
- Multiplayer game hosting
What is the Minecraft server port?
Minecraft Java Edition servers use TCP port 25565 by default. Players connect to the server address, and if no custom port is specified, the client assumes 25565. Minecraft Bedrock Edition commonly uses UDP 19132 instead, so the right port depends on the edition you host.
Java Edition defaults to TCP 25565
Most Minecraft server hosting guides, port forwarding examples, and Java clients assume TCP 25565 unless you configure a different server-port.
Bedrock uses a different default
Bedrock Edition commonly uses UDP 19132, so opening only 25565 will not make a Bedrock server reachable unless you run a proxy or custom setup.
How Minecraft server connections work
A Minecraft server listens on a configured port and waits for clients to connect. For Java Edition, that port is TCP 25565 by default. The client performs a handshake, checks server status, and then joins the world if the version, authentication, whitelist, and server rules allow it.
The port only makes the network path possible. Gameplay quality also depends on CPU performance, memory, disk speed, view distance, tick rate, plugin load, network latency, and how many players or automated farms are active at once.
Minecraft Java vs Bedrock ports
Minecraft Java Edition typically uses TCP 25565. If you change server-port in server.properties, players must include the custom port unless DNS SRV records or a proxy hides it.
Minecraft Bedrock Edition commonly uses UDP 19132 for IPv4 and may use related ports depending on platform and configuration. Java and Bedrock are different protocols. A Java port check does not prove that a Bedrock server is reachable, and Bedrock usually needs UDP-aware testing.
When port 25565 should be open
Open TCP 25565 when players outside the host machine or local network need to join a Java Edition server. For a home-hosted server, that usually means router port forwarding to the server's private IP plus a host firewall rule on the server.
Do not open 25565 if the server is private to a LAN, testing world, or temporary build environment that only local players need. Use a VPN, allowlist, or private hosting path when the player group is small and known.
Before opening a Minecraft server port
Before opening the port, set a static private IP or DHCP reservation for the server, confirm server.properties uses the expected server-port, and verify that the server is listening. Decide whether online-mode, whitelist, operators, difficulty, backups, and plugin permissions are configured correctly.
A port checker can tell you whether TCP 25565 is reachable from outside, but it cannot confirm that the Minecraft version matches, that the whitelist allows a player, or that plugins are healthy. Test with the real Minecraft client after validating the port.
How to open Minecraft port 25565 on Windows, Linux, and routers
On Windows, allow inbound TCP 25565 in Windows Defender Firewall for the Java runtime or server process. If the server is behind a home router, forward external TCP 25565 to the internal server IP and port.
On Linux, allow TCP 25565 through ufw, firewalld, nftables, iptables, or the cloud security group. If the server runs in Docker, publish the container port to the host. If it runs on a VPS, check both the host firewall and provider firewall.
On home networks, watch for CGNAT. If your router does not have a real public IP address, normal port forwarding will not work from the internet. You may need a VPS, tunnel, managed host, or ISP plan with a public address.
- Server layer: the Minecraft process must listen on TCP 25565 or your chosen custom port.
- Host layer: Windows Firewall, ufw, firewalld, or provider firewall must allow inbound TCP traffic.
- Router layer: NAT forwarding must point to the correct internal IP and port for home-hosted servers.
- Game layer: online-mode, whitelist, player limits, plugins, mods, and version compatibility still need separate testing.
How to test Minecraft port 25565
Start with an external port check against the public hostname or IP and port 25565. If the result is open, remote clients can establish a TCP connection to the Java server port. Then connect from a Minecraft client outside the local network.
If you use a domain name, confirm DNS points to the right public address. If you use a custom port, either tell players to include it or configure an SRV record for Java Edition. For Bedrock, use the appropriate UDP port and test with a Bedrock client.
Common Minecraft port troubleshooting cases
If port 25565 is closed, the server may not be running, may be listening on a different port, or may be blocked by the host firewall, cloud firewall, router forwarding, or CGNAT. If the port is open but players cannot join, check version mismatch, whitelist, online-mode, bans, plugins, mods, and server logs.
If local players can join but remote players cannot, the issue is usually router NAT, public IP, provider firewall, or DNS. If remote players can join but gameplay lags, inspect CPU load, memory pressure, disk I/O, view distance, entity counts, plugin timings, and network latency.
Security and reliability checklist for Minecraft servers
Use a whitelist for private communities, keep server software and plugins updated, back up worlds regularly, and avoid giving operator permissions broadly. Public servers should have moderation tools, anti-griefing controls, DDoS-aware hosting, and clear rollback procedures.
Do not run the server as an administrator or root user if you can avoid it. Limit file permissions, review plugin sources, keep Java updated, and monitor logs for suspicious joins, command abuse, crashes, and repeated connection attempts.
Frequently asked questions
What port does a Minecraft server use?
Minecraft Java Edition uses TCP port 25565 by default. Minecraft Bedrock Edition commonly uses UDP 19132, so the correct port depends on the edition and server configuration.
Do I need TCP or UDP for Minecraft port 25565?
For Java Edition, use TCP 25565. Bedrock Edition typically uses UDP 19132 instead. Opening the wrong protocol or edition-specific port will make the server appear unreachable.
Why is port 25565 closed?
The server may not be running, the host firewall may block it, the router may not forward it, the cloud firewall may deny it, or the network may be behind CGNAT without a real public IP.
Why is port 25565 open but players cannot join?
The network path may work while the game rejects the player. Check Minecraft version, whitelist, online-mode, bans, mods, plugin errors, server.properties, and server logs.