How do I find the right port for my Minecraft server?

Running a Java server on my own PC for a few friends. The server.properties file says 25565 but nobody outside my house can join. Is the port I give them the one from that file, or something from my router, and how do I check it's actually open?
1

Leave A Reply

Log in to post an answer.

1 Answer

davidc Nov 24, 2026
britton_21
Default is 25565 for Java (TCP), 19132 for Bedrock (UDP). You can change it with server-port in server.properties if you want, but most people leave it. The bit people get stuck on is the router, not the port number. Forward that port to the local IP of the PC running the server, and give that PC a fixed local IP so it doesn't change after a reboot. Then friends join with your public IP. You connect with localhost from the same machine.