EnderPanel Back to the website

Guides

How do you port forward a Minecraft server?

Short answer

In your router's settings, send TCP port 25565 to the computer running the server (and UDP 19132 for Bedrock players). EnderPanel tries to do this for you automatically, and if your router won't allow it, friends can join through a relay instead.

What port forwarding does

Your router lets nothing in from the internet by default. Port forwarding is a rule that says: traffic arriving on this port goes to that computer. Minecraft Java uses TCP 25565; Bedrock players coming through Geyser use UDP 19132.

Doing it on your router

  1. Give the server computer a fixed local address (often called a DHCP reservation), so the rule keeps pointing at it.
  2. Open the router's page, usually 192.168.1.1 or 192.168.0.1, and sign in.
  3. Find the setting. Routers call it Port Forwarding, Virtual Server, NAT Forwarding or Port Mapping.
  4. Add a rule: port 25565, TCP, to the server computer's local address. Add UDP 19132 for Bedrock.
  5. Test it with a port checker while the server is on, then give friends your public address.

When it won't work

Some internet providers share one public address between many homes (called CGNAT). Then no router rule can let friends in, and you need a relay. Your public address can also change from time to time, which breaks an address you've shared.

Quick questions

Is port forwarding safe?

It opens one port to one program. Keep the server updated and use a whitelist if you only want certain players.

Why does a port checker say closed?

The server must be on when you test. Otherwise, check the computer's firewall, the local address in the rule, and whether your provider uses CGNAT.

Do I need to forward a port for friends on my Wi-Fi?

No. People on your own network join with your computer's local address.

Related guides