← All guides
FreaksMC Guides

Minecraft Server Port 25565: What It Is and How to Change It

Updated November 27, 2026 · 4 min read

Every Minecraft Java server listens on a port, a number that tells incoming connections which program on the computer they want. The default is 25565. Most of the time you never think about it, but it matters as soon as you run two servers on one machine, see a "failed to bind to port" error, or need to tell friends an address with a colon and a number on the end.

Short answer
Java Edition uses TCP port 25565 by default, Bedrock uses UDP 19132. Change it with server-port= in server.properties and restart. Players then join with address:port, for example play.example.com:25570. "Failed to bind to port" means something else is already using that port: stop the other server or pick a different number.

What the port actually does

An IP address gets traffic to the right computer. The port gets it to the right program on that computer. When a player types play.example.com, Minecraft quietly adds :25565. If your server listens on 25565, they connect. If it listens somewhere else, they need to type the port themselves.

Edition Default port Protocol
Java 25565 TCP
Bedrock 19132 (IPv4), 19133 (IPv6) UDP
Query (server list info, optional) same as server port UDP
RCON (remote console, optional) 25575 TCP

How to change the port

  1. Stop the server.
  2. Open server.properties.
  3. Change the line:
server-port=25570
  1. If you use the query feature, set query.port to the same number.
  2. Start the server. The console should say Starting Minecraft server on *:25570.

Pick something from 1024 to 65535 that nothing else uses. Ports near 25565 (25566, 25570 and so on) are common for second servers. Every setting in that file is covered in server.properties explained.

On a hosting panel the port is usually assigned for you and shown next to the address. Changing it in server.properties there will break the server, because the host only forwards the port it gave you.

How players join a server on a custom port

Add the port after a colon:

play.example.com:25570
203.0.113.10:25570

Bedrock players type the address and port in separate boxes in the Add Server screen.

Hiding the port with an SRV record

If you own a domain, you can let players type a plain address and still use a custom port. Add a DNS SRV record:

Java Edition looks up that record and uses the port automatically. Bedrock does not read SRV records, so Bedrock players still need the port. See how to use a custom domain for a Minecraft server.

"Failed to bind to port" or "port already in use"

The full message is usually:

**** FAILED TO BIND TO PORT!
Perhaps a server is already running on that port?

Something is already holding the port. Causes, from most to least common:

  1. The server is already running. A previous copy did not shut down, often a window hidden behind others or a crashed process. Close it, or on Windows end the java.exe task in Task Manager.
  2. Two servers set to the same port. Give each its own server-port.
  3. Another program uses it. Rare for 25565, more common if you picked a random number. Choose another.
  4. The server-ip line is set wrong. If server-ip= contains an address the computer does not have, binding fails. Leave it empty unless you know you need it.

To see what is using a port on Windows, run netstat -ano | findstr 25565 and look up the PID in Task Manager. On Mac or Linux, lsof -i :25565.

Port forwarding at home

If you host on your own PC, friends outside your house can only reach port 25565 if your router forwards it to your computer. That means logging into the router, adding a TCP rule for 25565 to your PC's local IP, and allowing Java through the firewall. Some internet providers block it entirely (common with CGNAT and mobile internet).

If that fails, our guide to hosting without port forwarding covers the other options, and why your friends can't join walks through the rest of the checklist.

Can I use port 80 or 443?

Technically yes, but do not. Those ports belong to websites, many systems need admin rights to use ports below 1024, and some networks treat traffic on them differently. Stick to the 25565 range.

Quick reference

Want a server that just runs fast?

FreaksMC runs on NVMe hardware with performance-tuned defaults baked in - pre-optimized Paper, sane view distances, and one-click world pre-generation. Set up in 60 seconds.

See plans from $3/mo

We use cookies for analytics & ads to measure how our site performs. Essential cookies always run. See our Privacy Policy.