EN
Add server

Minecraft Port Forwarding, 25565 and 19132

Nov 18, 2026

A Java Minecraft server uses TCP port 25565 and a Bedrock server uses UDP port 19132. Port forwarding is a rule in your router that sends incoming connections on that port to the computer running the server. Without it, friends outside your home cannot connect, even if everything works for you.

Which ports Minecraft uses

You can change the port with server-port in server.properties for Java, or in server.properties of Bedrock Dedicated Server. With a non-default Java port, players add it after the address with a colon, such as play.example.com:25570.

Before you start

Port forwarding step by step

  1. Reserve the local IP. In the router, find DHCP settings and reserve the current IP for your PC. Otherwise the PC can get a different address after a restart and the rule stops working.
  2. Open the port forwarding page. Routers call it Port Forwarding, Virtual Server, NAT or Applications. It is often under Advanced settings.
  3. Add a rule for Java. External port 25565, internal port 25565, protocol TCP, target the local IP of your PC.
  4. Add a rule for Bedrock if needed. Port 19132 with protocol UDP.
  5. Save and restart the router if it asks.
  6. Allow Java in the firewall. On Windows, allow Java through Windows Defender Firewall when it asks, or create an inbound rule for the port.
  7. Find your public IP. Search for what is my IP, or read it in the router status page. Give this address to your friends.

How to test it

Ask a friend outside your home to join, or test it yourself on a phone with Wi-Fi turned off, using mobile data. You can also enter your public IP on our server status page. If it shows the server as online with your description, the port is open.

Joining your own public IP from inside your home may fail on some routers even when everything is correct. Always test from outside.

When port forwarding does not work

Alternatives to port forwarding

A tunnelling service such as playit.gg gives your server a public address without opening any port, and it also works behind CGNAT. Your home IP stays hidden, which is a bonus for public servers.

The other option is a hosted server, which has a public address from the first minute and keeps running when your PC is off. Our guide how to choose Minecraft server hosting explains what to look for.

Using a domain instead of an IP

A domain is easier to remember and survives IP changes. Point an A record, such as play.yourdomain.com, to your public IP. To hide a non-default Java port, add an SRV record named _minecraft._tcp that points to the port, and players can join without typing it. Bedrock does not support SRV records, so Bedrock players always enter the port.

Stay safe

Frequently asked questions

Is port forwarding safe?

Opening one port for a Minecraft server is reasonably safe if the server is up to date and runs in online mode. The main downside is that your home IP becomes known to everyone who joins. A tunnel avoids that.

Why can I join but my friends cannot?

You join through localhost or your local network, which does not need the router rule. Friends come from the internet, so the rule, the firewall and the public IP all have to be right.

Do I need port forwarding for LAN games?

No. Players on the same network join with the local IP address or through Open to LAN, without any router settings.

Which port do I forward for Bedrock?

UDP 19132, or the port set in your Bedrock server's settings.

When the server is reachable from outside, add it to MineList so new players can find it.