For more information about setting up a Minecraft server visit our guide Port Forwarding and Hosting a Minecraft Server.
When you use Minecraft: Java Edition Server you might need to forward some ports in your router. A port forward allows incoming connection requests from the internet to go straight to Minecraft: Java Edition Server.
By default routers do not allow incoming network requests. Forwarding ports can work around this limitation.
Before Forwarding a Port
You need to know the following things before you can forward a port:
- Your router's internal IP address.
- The IP address of your computer.
- The TCP and UDP ports that need to be forwarded.
Locate Your Router's IP Address
We have free Router Detector software to help you find your router's IP address. It is part of our Network Utilities suite of tools and is free for you to use it.
You can also follow our Find Your Router IP Address article.
How To Forward Ports for Minecraft: Java Edition Server
We have Network Utilities software that can forward ports for you. With Network Utilities, you can easily forward ports and also un-forward ports quickly so that you can keep your network up to date with the ports that you need forwarded and maximize your network security.
Port forwarding can also be set up step-by-step by hand. The step-by-step process for forwarding a port is:
- Start by logging in to your router.
- Locate your routers port forwarding section.
- Put your computer's IP address in the proper box in your router.
- Enter the TCP and UDP ports that you need to forward for Minecraft: Java Edition Server in the corresponding boxes in your router.
Frequently you have to reboot your router for the changes to take effect.
You can choose your router from our list to see exactly how to forward ports for Minecraft: Java Edition Server:
List of Routers - Customized for Minecraft: Java Edition Server
Setting Up a Port Forward for Minecraft: Java Edition Server
The ports that need to be forwarded for Minecraft: Java Edition Server are listed here:
Minecraft: Java Edition Server - PC
- TCP: 25565
- UDP: 25565
Those are the steps for forwarding ports in your router for Minecraft: Java Edition Server.
Still Can't Connect After Forwarding Your Ports?
Some internet connections can't be port forwarded at all. If your ISP uses CGNAT, or you are behind two routers (double NAT), incoming connections never reach your router, no matter how its ports are set.
For those connections a VPN is the way around it. NordVPN includes Meshnet, which links your devices over an encrypted connection so they can reach each other from anywhere, without opening any ports.
NordVPN links are affiliate links: if you sign up through one, we get a small commission. That's how we keep most of this site ad-free.
