This wikiHow teaches you how to forward a port for your Minecraft server. Forwarding a port is necessary if you want to let people who aren't on your Wi-Fi network join a server that you're hosting, as it will allow traffic from outside your network to access your computer.

Part 1
Part 1 of 4:

Preparing

  1. 1
    Make sure your Minecraft server is set up. If you haven't yet installed and configured a Minecraft server on your computer, click one of the following links for instructions on doing so for your specific operating system:
  2. 2
    Find your router's IP address. In order to access your router's page, you'll need to know the router address as specified by your computer's settings:
    Advertisement
  3. 3
    Find your computer's IP address. You should see this to the right of the "IPv4" heading in the menu in which you found your router's IP address. This is the address which identifies your computer.
    • If you see a slash and another number at the end of the IP address (e.g., 192.168.1.12/32), your computer may be identified by two addresses (e.g., 192.168.1.12 and 192.168.1.32).
  4. 4
    Close your Minecraft server if it's open. In order to forward your port correctly, the port shouldn't be in use. This means you'll need to close the server.
    • While doing this isn't strictly necessary, it can help prevent errors down the road.
  5. 5
    Close Minecraft. Once both Minecraft and your server are turned off, you can proceed with accessing your router's page.
  6. Advertisement
Part 2
Part 2 of 4:

Accessing Your Router Page

  1. 1
    Open a web browser. Click or double-click the app icon for your preferred web browser to do so.
  2. 2
    Click the address bar. It's at the top of the web browser window.
    • If there's any text in the address bar, remove it before proceeding.
  3. 3
    Enter your router's address. Type in the address you found next to the "Default gateway" (Windows), "Router" (Mac), or the "ip r" ending numbers (Linux).
    • For example, you might type something like 192.168.1.1 here.
  4. 4
    Press Enter. Doing so takes you to your router's page if the router is online.
  5. 5
    Log into your router's page. Type in the username if asked, then type in the password and press Enter.
    • If you don't know the login information, don't panic—most routers require you to log in using factory-default credentials (e.g., "admin" for the username and "password" for the password). You can usually find these credentials on the back/side of the router or in the router's manual.
    • If you can't find the router's sticker or its manual, you can check the router's model number online to see what common login credentials are.
  6. 6
    Wait for your router's page to load. Especially if this is your first time accessing your router's page, it may take a few seconds for the page to finish loading. Once you're logged in, you can assign a static IP address to your computer.
    • You may need to navigate through some on-screen setup prompts or a tutorial if this is your first time opening the router's page.
  7. Advertisement
Part 3
Part 3 of 4:

Assigning a Static IP Address

  1. 1
    Understand that each router's page looks different. While it's possible to approximate the location of menu items on your router's page, what you see will vary heavily depending on your router.
  2. 2
    Know why you need to assign a static IP address. Assigning a static (instead of a dynamic) IP address to your computer will prevent the IP address from changing if your computer ever loses its connection to the router. This means that you won't have to update your IP address in the server's settings each time you turn back on your computer.
  3. 3
    Find your router's list of connected items. This list's location will vary, so try looking in the following places or menus:
    • Connected Devices
    • Settings
    • Advanced Settings
    • Network
    • Devices
    • Parental Controls
  4. 4
    Find your computer's IP address. Scroll through the list of connected items until you find the IP address that matches your computer.
    • This should be the "IPv4" address you found in the same menu as the router's address.
  5. 5
    Lock the IP address. Again, this will vary depending on your router page. You may need to click a lock icon next to your IP address, click a settings gear icon and then click Reserve next to the address, or check a "Reserve" box near the address.
    • For specific instructions regarding setting a static IP address on your model of router, read the router's manual or online documentation.
  6. 6
    Save your changes. Click the Save or Apply button to do so. Now that your computer's IP address is reserved, you can finally forward the Minecraft port.
    • Your router may need to reboot before you can proceed. If so, it will reboot automatically.
  7. Advertisement
Part 4
Part 4 of 4:

Forwarding Your Minecraft Port

  1. 1
    Know which port to forward. The default Minecraft port number is 25565. Unless you've somehow changed this number in your computer's Firewall settings, the default port number is the number you'll use.
  2. 2
    Find and open your router's "Port Forwarding" section. On most routers, this section should be referred to as "Port Forwarding", and it should be a main tab or menu item on the router's home page.
    • If you don't see the "Port Forwarding" section on the main page, look in the Settings or Advanced Settings section.
    • Once again, you can consult your router's specific documentation for the proper instructions on using your router's port forwarding feature.
  3. 3
    Enter a name for your rule. In the "Name" or "Rule" text box, type in a title (e.g, "Minecraft") that describes the port forward rule. Optionally, type in a description.
  4. 4
    Enter the Minecraft port number into the "Inbound" text box. Type 25565 into this text field.
  5. 5
    Add the port number to the "Outbound" textbox. Again, you'll just type in 25565 here. This indicates to your router that only port 25565 should be forwarded in this rule.
    • If you don't see this option, just look for a second "Port" text field on the right side of the list.
  6. 6
    Enter your computer's static IP address. In the "Address" text box, type in the static IP address you set for your computer.
  7. 7
    Select a type of port. Click the drop-down box in the "Type" column, then click TCP in the drop-down menu. Then, also enable UDP in the same menu.
    • You may instead need to check a box (e.g., click the "TCP" checkbox).
    • If the "Type" drop-down box already has TCP in it, skip this step.
  8. 8
    Save your changes. Click the Save or Apply button to do so. At this point, your port should be forwarded, meaning that you should be able to invite friends to use port 25565 on your computer's public IP address in order to access your Minecraft server.
    • Your router may need to reboot before you can proceed. If so, it will reboot automatically. If that doesn't work, wait a few minutes for the router to refresh.
  9. Advertisement

Community Q&A

  • Question
    How do I know my IP address?
    Community Answer
    Community Answer
    Your IP address is displayed when you google "IP" or "What is my IP."
  • Question
    How do I add plugins to the Minecraft server if I portforward?
    Community Answer
    Community Answer
    It is possible to host local Bukkit or Spigot servers, both of which allow plugins to be added. There are plenty of tutorials explaining in detail how to do this.
  • Question
    Can I have a bit more explanation about step 12 regarding where to paste the address?
    Community Answer
    Community Answer
    On the Minecraft main menu screen, there should be a button that says "Multiplayer." Click it. Click "Add Server" at the bottom. The IP Address slot of the new server page is where you paste the address.
Advertisement

About This Article

Jack Lloyd
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Jack Lloyd. Jack Lloyd is a Technology Writer and Editor for wikiHow. He has over two years of experience writing and editing technology-related articles. He is technology enthusiast and an English teacher. This article has been viewed 322,415 times.
35 votes - 66%
Co-authors: 11
Updated: February 6, 2022
Views: 322,415
Categories: Minecraft Servers
Advertisement