This guide will take you through the steps to set up port forwarding on your router to run a CraftBukkit server from a home connection.
Before we start
- Determine your router model (Your router model number will likely be on a sticker on the router).
- Check if you have admin access to your router (If you don't know the username/password there may be a sticker on your router which has the username & password. If it doesn't go to http://portforwarding.com and look up your router model there.)
- There are port forwarding softwares out there. Examples include SimplePortForwarding or ImminentFate's PortMapper software
Finding your internal IP address
Open Command Prompt. You can find this in your Start menu, or you can open it via Run (There, run cmd).
Type ipconfig and press enter. Look for the connection named "Ethernet adapter Local Area Connection" or "Wireless LAN adapter Wireless Network Connection". In there, the value named IPv4 Address is your internal IP for that connection. Write that down for the next steps.
Open Terminal. Type ifconfig and press enter. The value next to inet under en1 is your internal IP address.
Forwarding to your internal IP
- Note: It is easier using a static (non-changing) internal IP to port forward than a dynamic internal IP. Generally your network setup will default to a dynamic internal IP, which can change any time you restart your computer. You can find tutorials for all operating systems for setting a static internal IP.
- Type the Default Gateway IP address into the address bar on your favorite browser and log into your router using the username and password you found earlier.
- Look for Tabs which have either "ToolBox" , "Port Forwarding" , "Game sharing" , "NAT" , "UPnP". If you see none of these options, look online for tutorials for portforwarding with your router. Before continuing, make sure you're on a page that lets you input ports and IP addresses.
- Now its time to assign the port for your server. If it asks for a name, you can make up whatever name you like (Such as "minecraft"). If there is a protocol option, set it to TCP/UDP (both) or TCP. If you have used the default port, set the port to 25565 (or port range to 25565-25565), otherwise replace 25565 with your port choice. Set the IP to which you are forwarding as the internap IP we determined earlier.
- Submit the form and we're done!
Did I port forward correctly?
First off you must test if your ports have actually forwarded properly to do this either go to CanYouSeeMe. In the IP bar it should display your external IP address. Change the port to check 25565 and submit. If it says "Open" you're all set! Share that external IP address with your friends!
If you receive a different message, check your firewalls. Ensure that Java, Minecraft, and port 25565 are not blocked.
Need more help?
Create a post in the Bukkit Help forum.