Port forwarding is essential if you want to allow players outside your Wi-Fi network to join your Minecraft server.

By forwarding a port, you enable external traffic to access your computer. If you’re ready to set up port forwarding for your Minecraft server, follow these steps:

Prepare Your Minecraft Server

Ensure your Minecraft server is set up and configured correctly on your computer.

If you haven’t done this yet, you should first check how to create your own Minecraft server.

Find your router’s IP address.

You need this address to access your router’s page. On Windows, open Start > Settings > Network & Internet > View your network properties.

Look for the “Default gateway” section. On Mac, go to the Apple menu > System Preferences > Network > Wi-Fi > Advanced > TCP/IP > Router. Linux users can open a terminal and type “ip r” to find the router’s IP address.

Discover your computer’s IP address. Locate the IPv4 address which identifies your computer. It can be found in the same menu where you found the router’s IP address.

Close your Minecraft server to ensure the port is not in use. Though not mandatory, this step prevents potential errors during the port forwarding process.

Access Your Router Page

  1. Open a web browser of your choice.
  2.  Click the address bar at the top of the browser window and remove any existing text.
  3.  Enter your router’s IP address (e.g., into the address bar and press Enter.
  4.  Log in to your router’s page using the username and password. If you don’t know the login information, try factory-default credentials, which are usually “admin” for the username and “password” for the password. Consult your router’s sticker, manual, or model number for specific login credentials.
  5.  Wait for the router’s page to load, which may take a few seconds if it’s your first time accessing it.

Assign a Static IP Address

  1. Understand that each router’s page looks different, but the general location of menu items may be similar.
  2.  Know that assigning a static IP address to your computer prevents it from changing, making it easier to forward the port in the future.
  3.  Find the list of connected devices on your router’s page, which may be under various menus like “Connected Devices,” “Settings,” or “Network.”
  4.  Locate your computer’s IP address in the list. It should match the “IPv4” address you found earlier.
  5.  Lock the IP address to prevent changes. Click a lock icon, reserve the address, or check a “Reserve” box, depending on your router’s settings.
  6.  Save your changes, and the router may need to reboot.

Forward Your Minecraft Port

  1. Know that the default Minecraft port number is 25565, which is the number you’ll use unless you’ve changed it manually in your computer’s Firewall settings.
  2.  Look for the “Port Forwarding” section on your router’s page. It may be referred to as “Port Forwarding,” found in “Settings,” “Advanced Settings,” or similar.
  3.  Enter a name for your rule (e.g., “Minecraft”) in the “Name” or “Rule” text box.
  4.  Enter the Minecraft port number (25565) into the “Inbound” text box and the “Outbound” text box.
  5.  Type in your computer’s static IP address in the “Address” text box.
  6.  Select TCP and enable UDP in the “Type” column, or check the “TCP” checkbox if TCP is already listed.
  7.  Save your changes, and the router may reboot.