Lodehost logoLodehost

Performance and fixes

Minecraft server ports: which one, and when you need to type it

The default Minecraft port is 25565 over TCP for Java and 19132 over UDP for Bedrock. A port is the door on a machine that the game knocks on after it has found the address. Most of the time nobody has to think about it: Java leaves it out when it is 25565, and Bedrock fills in 19132 by itself. This guide covers the cases where the port does matter.

5 min read

A dark server block with green lights and a yellow lightning bolt on a grass block
Every Minecraft server listens on a port. Java checks 25565 when you type no port at all.

The default Minecraft ports

WhatDefault portProtocolSetting in server.properties
Java Edition server25565TCPserver-port
Bedrock Edition server19132, and 19133 for IPv6UDPserver-port and server-portv6
Server list query25565UDPquery.port, only with enable-query=true
Remote console (RCON)25575TCPrcon.port, only with enable-rcon=true

Java and Bedrock use different protocols, so 25565 over TCP and 19132 over UDP never get in each other's way.

Only the first two matter to players. Query lets server lists read who is online, and RCON lets a program send console commands from outside. Both are off unless you switch them on.

A Minecraft server address separated from its port number
In this Java example, play.example.net is the address and 25565 is the port. Use your assigned connection details; Bedrock and custom configurations can use different ports. View larger.

When players have to type a port

Java has one field for the address. When the server listens on 25565, players type just the address. On any other port they add it after a colon, as in play.example.com:25570. Bedrock has two fields, Server Address and Port, and puts 19132 in the second one unless you change it.

A server on a port other than 25565 can still get an address without a number behind it, for Java at least. An SRV record in DNS with the name _minecraft._tcp plus your domain tells the game which host and port to use. Bedrock does not read SRV records, so Bedrock players always need the right port in the Port field.

Where the address in front of the port comes from is in how to find a Minecraft server IP, and the fields players fill in on each device are in how to join a Minecraft server.

Port forwarding a Minecraft server at home

A server on your own PC is reachable inside your house straight away. Friends elsewhere knock on your router, and the router has to know which computer to send them to. That is what a port forward does.

  1. Give your PC a fixed local address

    Look up the local IPv4 address of the PC that runs the server and reserve it in the router, so the forward keeps pointing at the right machine after a restart.

  2. Forward the port in your router

    Open the router settings, usually under port forwarding, virtual server or NAT. Forward TCP 25565 to that local address for Java, UDP 19132 for Bedrock, or both if you run both.

  3. Allow Java through the firewall

    The first time the server starts, Windows asks whether Java may use the network. Allow it for private and public networks, or add the port as a rule by hand.

  4. Test from outside your house

    Ask a friend to connect with your public IP address, or try from a phone on mobile data. Joining from the same Wi-Fi proves nothing about the forward.

When a forward does nothing

Some internet providers put several customers behind one shared public address, called CGNAT. A port forward on your own router cannot reach through that. Your provider can sometimes give you a public address of your own; otherwise a hosted server is the way around it.

How to change the port of a Minecraft server

On a server you run yourself, stop it, set server-port in server.properties to the new number, save and start it again. Pick a number above 1024 that nothing else on the machine uses, and change the port forward in your router to match. For a Bedrock server the same goes for server-port and server-portv6.

Two servers cannot share one port on one machine. If the port is taken, the Java server stops with FAILED TO BIND TO PORT! and asks whether a server is already running on it. Often that is simply the same server still running in another window.

Ports on a Lodehost server

  • Java players type no port. Every server gets a name like yourname.mc.minecrafthosting.cc. Players type only that, and our address router sends them to the right machine and port.
  • Bedrock players on a Crossplay plan type the address and the Bedrock port shown in your panel. Java and Bedrock crossplay walks through it.
  • Leave the port settings alone. The port is set by the panel, which is why server-port is not in the settings list. The same goes for the port in Geyser's config on a Crossplay plan: a copied guide that says 19132 there closes the server to Bedrock players.

Need a second port for a plugin, such as a web map? Contact us and say which plugin it is.

What port errors mean

MessageWhat it usually means
Connection refusedThe machine answered, but nothing listens on that port. The server is off, or the port in the address is wrong.
Connection timed outNothing answered at all. A firewall or a missing port forward is in the way.
Unknown hostThe address itself could not be found. Check the spelling; a port error comes later.
FAILED TO BIND TO PORT!The server could not open its port because something else already uses it.

More connection problems and how to track them down are in can't connect to a Minecraft server.

Written and checked by the Lodehost team, last reviewed on 24 September 2026.

FAQ

Questions about Minecraft ports

What port does a Minecraft server use?

25565 over TCP for Java Edition and 19132 over UDP for Bedrock Edition, unless the server has been set to another port.

Do I need to type the port to join?

On Java only when the server does not use 25565 and has no SRV record; then you type the address, a colon and the port. On Bedrock the port has its own field, which starts at 19132.

Is port 25565 TCP or UDP?

TCP for the game itself. UDP on 25565 is only used by the optional query feature that server lists read.

How do I open port 25565?

Forward TCP 25565 in your router to the local address of the PC that runs the server, and allow Java through the firewall. On a hosted server that is done for you.

Can I change the port on my Lodehost server?

No, the panel manages it, and Java players do not need one anyway. Bedrock players on a Crossplay plan use the port shown in your panel.

A server address with no port to remember

Every plan comes with a name your friends type as it is, no port forward at home and no number after a colon.

See the plans