Minecraft server ports explained: 25565 and 19132

By Kosy · · 2 min read

A port is a numbered door on a computer. A Minecraft server listens on a few of them, and players connect through the right one.

The ports you will meet

Port Protocol Used for
25565 TCP Java Edition players. The default, so players leave it out of the address
19132 UDP Bedrock Edition players on a Bedrock server or a Geyser setup
25575 TCP RCON, remote console access. Off by default
25565 UDP Query, which lists players and plugins to monitoring tools. Off by default

If your server uses 25565, players type only the address. On any other port they type address:port, for example play.example.com:25570.

Where you set them

  • server-port in server.properties sets the Java port.
  • enable-rcon, rcon.port and rcon.password turn on RCON. Only enable it with a long password, and never expose it to the internet if you do not need to.
  • enable-query and query.port turn on query.

The server.properties generator writes these for you, and server.properties explained covers each key.

Port forwarding at home

Running a server on your own computer means your router must send incoming traffic on the port to your machine. That is port forwarding, and it exposes your home address to everyone who joins. It also fails behind carrier-grade NAT, which many mobile and some home connections use. Hosting at home or hosted compares the two.

On a hosted server

You do not forward anything. Your server has an address that works from the start, and the host takes care of the doors. On Saryno the address is shown on the server page, and Java players join with it as is. How Bedrock players join is in how to join with Java and Bedrock.

Common errors

  • Connection refused: the server is off, or the port is wrong.
  • Connection timed out: a firewall or router is blocking the port, or the address is wrong.
  • Bedrock cannot connect: Bedrock needs UDP, which is easy to forget on a home router. See Bedrock cannot connect: fixes.

To test whether a server answers from outside your network, use the server status checker.

More to read