Are you struggling with Port Forwarding?
(Automatic Port Forwarding for Servers)
Servers require that you configure port forwarding in your router, so that the server can be accessed from the Internet. This is confusing to many people, causing many newcomers to give up. For those who know what they are doing, it is time consuming. Fortunately, there is a quicker and easier way.
Most routers support a standard called Universal Plug and Play (UPnP), meaning that you can use the BaUPnP tool to update your port forwarding settings without going through all the menus in your router.
BaUPnP is a free command line utility that automates the process of forwarding your ports.
BaUPnP only needs to be run once when you power on your computer.
The easiest way to use this program is to add BaUPnP as a shortcut in your Windows Startup folder. Programs in the Startup folder are automatically started by Windows when you power on your computer. We suggest the following:
1. Download BaUPnP and save it in any location on your hard drive.
2. Right click on the Windows Start button. Select "Open" or "Open All Users".
3. Navigate to Programs -> Startup.
4. Right click and select New -> Shortcut.
5. Browse to where you installed (saved) BaUPnP.exe and select it. Click Finish.
BaUPnP will now configure port forwarding every time you power on your PC. The BaUPnP console window will automatically close when you press the ENTER key.
What to do if BaUPnP fails
Not all routers support UPnP, and many routers have UPnP disabled by default. You must enable UPnP in the router for BaUPnP to work. Please refer to your router manual for more information on how to enable UPnP. The UPnP enabled/disabled setting is typically found under "advanced settings" or "LAN Settings".
BaUPnP automatically attempts to find the IP address to your router if BaUPnP cannot do automatic port forwarding. BaUPnP also attempts to find your router's username and password by using a database with router default passwords. This is useful if you have never configured your router before and the router is using the manufacturer's default password. We suggest that you change the password if BaUPnP finds your router's default username/password.
Configuring Port Forwarding for Other Ports
BaUPnP can also do port mapping for other ports by simply specifying the port mapping as command line arguments.
The following example configures port mapping for FTP (port 21) and Telnet (port 23):
BaUPnP.exe 21 23