Port forwarding for Minecraft Java or Bedrock allows people who aren’t on your Wi‑Fi network to join a Minecraft server that you’re hosting, making it a great option if you want to let friends join your private server. The setup might seem complicated at first, but this guide breaks it down step by step, from gathering information to configuring your router.
Before you start:
- Set up a Minecraft server and start it once to identify your computer’s IP address.
- Have your router’s admin login credentials ready.
- Know your operating system (Windows, Mac, or Linux) for finding network details.
- Close any running Minecraft instances before proceeding.
How to set up port forwarding for a Minecraft server
Follow these detailed steps to gather information, assign a static IP, forward the port, and troubleshoot as needed.
Gathering information and setting up
- Start your Minecraft server temporarily if you haven’t already.
- Find your router’s IP address based on your operating system:
- On Windows: Open Settings > Network & Internet > View your network properties and note the address next to Default gateway.
- On Mac: Open System Preferences > Network, select your Wi‑Fi, click Advanced, go to the TCP/IP tab, and note the address next to Router.
- On Linux: Open a terminal and type
ip r; the last set of numbers is the router’s IP address.
- Find your computer’s IPv4 address in the same network menu.
- Close your Minecraft server and the Minecraft app.
Assigning a static IP address
- Open a web browser and type your router’s IP address.
- Log in to your router’s admin page.
- Locate the list of connected devices (such as Connected Devices or Network).
- Find your computer’s IP address on that list.
- Reserve or lock that IP address for your computer. Warning: Save changes, as your router may reboot.
Forwarding your Minecraft port
- Open the Port Forwarding section in your router settings.
- Enter a name for the rule, such as Minecraft or Minecraft Java Edition.
- Enter the Minecraft port in the Inbound box: 25565 for Java Edition or 19132–19133 for Bedrock Edition.
- Enter the same port number in the Outbound box.
- Enter your computer’s static IP address.
- SelectTCP/UDP, or create two separate rules (one TCP, one UDP) if needed.
- Save the changes; reboot the router if prompted.
Troubleshooting connection issues
- Use an online port checker like YouGetSignal or PortChecker to verify if the port is open externally.
- Allow port forwarding in your computer’s firewall settings.
- Check that the correct port is set in your Minecraft server.properties configuration file.
- Verify with your ISP if they block port forwarding or require special firewall settings.
Hosting your own server gives you full control over gameplay, mods, and worlds without relying on public servers. You can customize rules, invite only trusted friends, and avoid lag from distant hosts. This approach fosters private, immersive experiences tailored to your group’s style.
Port forwarding builds technical skills useful for other networking tasks, like setting up game servers or remote access. While it carries risks, following best practices ensures safe operation. Ultimately, it empowers cost-free multiplayer on your terms, enhancing community bonds through shared adventures.







