This article was co-authored by wikiHow staff writer, Amy Bobinger, BA. Amy Bobinger holds a B.A. in English from Mississippi College and has spent over eight years helping people make sense of complicated topics. Since she began her career in 2016, she’s honed her skills in storytelling, content management, and editorial strategy. Amy loves turning complex information into something clear and useful, knowing that the right words can make a real difference in readers' lives.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
This article has been viewed 472,459 times.
Learn more...
Port forwarding allows people who aren't on your Wi-Fi network to join a Minecraft server that you're hosting, so it’s a great option if you want to let friends join your private server. The setup might seem a little complicated at first, but we’re here to break it all down for you, from getting set up to configuring your router and forwarding your Minecraft port.
How to Make a Minecraft Port
- Set up a Minecraft server.
- Type your router’s IP address into a browser to open the settings.
- Create a dynamic IP address in your router settings.
- Create a new rule in your router’s Port Forwarding settings.
- Type the Minecraft port number into the inbound and outbound boxes.
- Enter your static IP address in the Address bar.
- Choose TCP/UDP under “Ports.”
- Save and reboot your router.
Steps
Gathering Info & Setting Up
-
Start a Minecraft server if you don’t have one yet. 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:
-
Find your router's IP address. To access your router's page, you'll need to know the router address as specified by your computer's settings:
- Windows — Open Start , click Settings , click Network & Internet, click View your network properties, scroll down to the "Wi-Fi" heading, and note the address next to the "Default gateway" section.
- Mac — Open the Apple menu , click System Preferences..., click Network, click your Wi-Fi connection on the left side, click Advanced..., click the TCP/IP tab, and note the address next to the "Router" heading.
- Linux — Open a terminal and type in "ip r". The last set of numbers is the router's IP address.
Advertisement -
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.[1]
- 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).
- If you see two different addresses, use the one that most closely matches the examples above—4 groups of numbers separated by 3 dots.[2]
-
Close your Minecraft server and the Minecraft app if they’re open. Closing the Minecraft server should shut the port, which could help prevent errors when you set up the port forwarding. The Minecraft app should be shut down. Once Minecraft and your server are both shut down, you can proceed with accessing your router's page to assign a static IP address to your router..
- While doing this isn't strictly necessary, it can help prevent errors down the road.
Assigning a Static IP Address
-
Open a web browser. Click or double-click the app icon for your preferred web browser to do so.[3]
-
Click the address bar. It's at the top of the web browser window.[4]
- If there's any text in the address bar, remove it before proceeding.
-
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).[5]
- For example, you might type something like 192.168.1.1 here.
-
Press ↵ Enter. Doing so takes you to your router's page if the router is online.[6]
-
Log into your router's page. Type in the username if asked, then type in the password and press ↵ Enter.[7]
- 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, look up the router's model number online to see common login credentials. If you still can’t find it, contact your internet provider.
-
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.
-
Find your router's list of connected items. The exact location and contents of the list will vary depending on your router. Try looking in the following places or menus:
- Connected Devices
- Settings
- Advanced Settings
- Network
- Devices
- Parental Controls
-
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.
-
Lock the IP address. Again, the exact way you do 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.
- 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.
-
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.[8]
- Your router may need to reboot before you can proceed. If so, it will reboot automatically.
Forwarding Your Minecraft Port
-
Find and open your router's "Port Forwarding" section. On most routers, this section is 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.
- “Port Forwarding” may also be called “Port Triggering,” “Firewall Settings,” “NAT forwarding,” or something similar.[9]
- Consult your router's specific documentation for the proper instructions on using your router's port forwarding feature.
-
Enter a name for your port forwarding rule. In the "Name" or "Rule" text box, type in a title (e.g, "Minecraft") that describes the port forward rule that you’re setting up. Optionally, type in a description.[10]
- Consider naming the rule based on the Minecraft edition you’re playing (e.g. “Minecraft Java Edition”).
-
Enter the Minecraft port number into the "Inbound" text box. Type 25565 into this text field.[11]
- The default Minecraft port number for Java 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.
- If you’re playing Bedrock edition, use port 19132 or 19133.
-
Add the port number to the "Outbound" textbox. Again, you'll type in 25565 here for Java or 19132-19133 for Bedrock. This indicates to your router that only this port should be forwarded.[12]
- If you don't see this option, just look for a second "Port" text field on the right side of the list.
-
Enter your computer's static IP address. In the "Address" text box, type in the static IP address you set for your computer.
-
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.[13]
- 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.
- If you can’t choose both options, make two port forwarding rules. Fill out everything identically, but on one, choose inbound, and on the other, choose outbound.
-
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.[14]
- You may need to reboot your router for the changes to take effect.
Community Q&A
-
QuestionHow do I know my IP address?Community AnswerYour IP address is displayed when you google "IP" or "What is my IP."
-
QuestionHow do I add plugins to the Minecraft server if I portforward?Community AnswerIt 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.
-
QuestionCan I have a bit more explanation about step 12 regarding where to paste the address?Community AnswerOn 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.
Video
Tips
References
- ↑ https://support.microsoft.com/en-us/windows/essential-network-settings-and-tasks-in-windows-f21a9bbc-c582-55cd-35e0-73431160a1b9
- ↑ https://thebreakdown.xyz/how-to-port-forward-for-a-minecraft-server/
- ↑ https://thebreakdown.xyz/how-to-port-forward-for-a-minecraft-server/
- ↑ https://thebreakdown.xyz/how-to-port-forward-for-a-minecraft-server/
- ↑ https://www.pcmag.com/how-to/how-to-set-up-a-static-ip-address
- ↑ https://thebreakdown.xyz/how-to-port-forward-for-a-minecraft-server/
- ↑ https://thebreakdown.xyz/how-to-port-forward-for-a-minecraft-server/
- ↑ https://www.namehero.com/gaming-blog/how-to-port-forward-a-minecraft-server/
- ↑ https://thebreakdown.xyz/how-to-port-forward-for-a-minecraft-server/
- ↑ https://thebreakdown.xyz/how-to-port-forward-for-a-minecraft-server/
- ↑ https://thebreakdown.xyz/how-to-port-forward-for-a-minecraft-server/
- ↑ https://thebreakdown.xyz/how-to-port-forward-for-a-minecraft-server/
- ↑ https://thebreakdown.xyz/how-to-port-forward-for-a-minecraft-server/
- ↑ https://thebreakdown.xyz/how-to-port-forward-for-a-minecraft-server/
- ↑ https://cybernews.com/what-is-vpn/port-forwarding/