Editing MG/Port Forwarding

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
==What is Port Forwarding?==
 
'''Port Forwarding''' is a special configuration which you apply to your internet access device (typically a broadband router such as a cable or DSL modem/router) to be able to host Internet services on your own line. Many games require you to setup port forwarding if you would like to host games for other Internet players (you can still take part in games other people host without setting up port forwarding). This page will attempt to provide you with hints on how to setup port forwarding on your own broadband router.
 
  
==Methods to configure port forwarding==
+
= Port Forwarding =
===The easy way: UPnP===
+
Port Forwarding is a special configuration which you apply to your internet access device (typically a broadband router such as a cable or DSL modem/router) to be able to host Internet services on your own line. Many games require you to setup port forwarding if you would like to host games for other Internet players (you can still take part in games other people host without setting up port forwarding).
MegaGlest supports ''Universal Plug'n'Play (UPnP)''. If your router supports it (most do) and it is enabled there then you can just start the game and host and all the technical stuff will happen automatically: MegaGlest will instruct your router to forward all required ports to your computer while you are hosting. So for now, just try to host, and see if it already works. If it does not work, yet, saying that your router is not configured properly, then just come back here and read on.
 
  
UPnP is supported by most routers, however it is often not activated by default. So you need to reconfigure your router to support UPnP. This is really easy once you made it to access your router. How to do this is explained below. Once you accessed your router, just look for the UPnP option, activate it, save (if needed) and you should be ready to host.
 
  
===The advanced way: Manual port forwarding===
 
To manually configure your router to work for hosting MegaGlest games, you first need to find out your internal (LAN) IP address. To do so, just run MegaGlest and navigate to the Custom Game menu (which is where you would end up when you wanted to host an Internet game). You may get to see an error message there saying that your router is not properly configured for Internet gaming. However, this page will also list your internal IP address (on the very top). Take note of it and exit MegaGlest.
 
  
[[File:Example-_A_NETGEAR_router.jpg|thumb|Example with a Netgear router.]]
+
This page will attempt to provide you with hints on how to setup port forwarding on your own broadband router.
 +
==Generic instructions==
 +
To configure your router to work for hosting MegaGlest games,you first need to find out your internal (LAN) IP address. To do so, just run MegaGlest and navigate to the Custom Game menu (which is where you would end up when you wanted to host an Internet game). You may get to see an error message there saying that your router is not properly configured for Internet gaming. However, this page will also list your internal IP address (on the very top). Take note of it and exit MegaGlest.
  
Next, access your routers' web interface as explained below. Unfortunately there is no unique naming or structure of how the options on your routers' web interface are aligned, so you need to search for the page which allows you to setup ''port forwarding'' (AKA ''Internet services''). Specifically, you need to forward the ''external ports'' ''61357 to 61366'' of protocol / type ''TCP'' to the ''internal ports 61357 to 61366'' on your computers' LAN IP address, that's the IP address you just noted down in the previous step. Once this is set, you should be able to host games.
+
Next, you need to setup ''port forwarding'' (AKA "internet services") on your broadband Internet access router, using the web interface it usually provides. Specifically, you need to forward the ''external port'' ''61357'' of type ''TCP'' to the ''internal port 61357'' on your computers' LAN IP address, that's the IP address you just noted down in the previous step.
  
However, the IP address your router assigns to your computer in your LAN may change when you reboot your computer or router. If you want your router to always assign the same internal (LAN) IP address to your computer, then you need to exempt your computer from having IP addresses automatically assigned to it, and assign it a static IP address instead. This is often done in a ''DHCP'' or ''LAN'' or ''Local Network'' section of the routers' web interface. There, you usually assign an address range which defines IP addresses which the router automatically assigns to computers in your LAN.  
+
See the next section for in-depth instructions on how to set this up easily on your specific router.
 +
==portforward.com==
 +
[http://portforward.com/ PortForward.com] has nice docs on how to setup port forwarding, including screen shots, for ''a lot'' of routers.
 +
==Speedport w701V==
 +
At first make sure that you are connected with your router, then open a browser and navigate to the ip of your router. As usal now you have to enter a pin to configure your router.
  
If your computer is listed there (often with its MAC address, looking somewhat like <code>1A:2B:3C:4D:5E:6F</code>) and you can assign a fixed address to it, then do so, picking an IP address which is outside of the DHCP range. For example, if the DHCP range is 192.168.10.50 to 192.168.10.100, then you can use the 192.168.10.101 address for static IP address assignment to your computer.
+
At first you have to have to activate port forwarding, in this example you can find it under "Networking" and there it's called "PPPoE Pass-Through".
  
If your computer is not listed there, then you will probably need to configure, on your own computer, the network interface to use a fixed IP address, picking any IP address which is outside of the DHCP range listed on the routers' web interface.
+
Now you have to open the port 61357 for TCP, in this example you have to browse to "NAT & port rules", there you must click on "create new rule". The name of the rule does not matter. You have to enter a public port and a private client port, for both enter 61357.
 
+
<gallery type="slideshow" widths="399" position="center">
===Router Specific Instructions===
+
step2.png
There are sooo many routers out there and unfortunately their configuration websites can look very different. Luckily there is [http://portforward.com/#router-list-hd portforward.com], a very helpful website which explains how to configure port forwarding on many different routers. Follow the instructions provided there to find your way along your routers' web interface. Once you found the port forwarding section, use the instructions provided in the ''Manual port forwarding'' section above to configure it properly.
+
step2.png
 
+
step3.png
The MegaGlest community also provides some documentation on how to set up specific routers to host games online. You are very welcome to add your own guide.
+
step4.png
 
+
step5.png
* [[MG/Port_Forwarding/Speedport_w701V|Speedport w701V]]
+
step6.png
 
+
step8.png
 
+
step9.png
==How to access your router==
+
step10.png
Most routers provide a web configuration interface (a website) which you can access from your web browser (such as Firefox, Chrome, Opera, Internet Explorer or Safari). The exact Internet address of your router can differ, though, so you need to find this out first.
+
</gallery>
 
 
===On Windows===
 
* Open the Windows Start menu in the task bar
 
* ''Search'' for <code>cmd</code> or, on Windows XP, click on ''Run'', then enter <code>cmd</code>. A command line window will show up.
 
* Type <code>ipconfig</code> and press Enter.
 
* Look for lines starting with ''Default Gateway''. There can be more than one, but only one will have a dotted quad at the end of the line - this is your routers' IP address
 
* Start your web browser and enter your routers' IP address, optionally prefixed with ''http://'', into the address bar. For example: <nowiki>http://192.168.1.1</nowiki> (if your routers' IP address was 192.168.1.1). You should then get to see either a login prompt or the web configuration of your router already.
 
* If you need to login, use the credentials you set yourself when you first configured your router. If you never did this, then your router may still be using its default factory-set credentials. If that's the case then note down the brand and model (e.g. brand: Linksys, model: WRT54GL) from the web config (it is usually listed there either on the page itself or in the web browsers' title bar) and [http://www.routerpasswords.com/ look up the default credentials].
 
 
 
For a graphical guide, refer to: [http://www.hacker10.com/computer-security/how-to-find-out-your-router-ip-address-in-windows/ hacker10.com: How to find out your router IP address in Windows]
 
 
 
===On Linux===
 
* Open a terminal window (the exact process differs by Linux distribution and window manager/Desktop - consult with your distribution for precise instructions)
 
* Type this and press enter: <code>ip route show | awk '/^default/ {print $3}'</code> (don't miss those quotation marks). What you get in return is your routers' IP address.
 
* Start your web browser and enter your routers' IP address, optionally prefixed with ''http://'', into the address bar. For example: <nowiki>http://192.168.1.1</nowiki> (if your routers' IP address was 192.168.1.1). You should then get to see either a login prompt or the web configuration of your router already.
 
* If you need to login, use the credentials you set yourself when you first configured your router. If you never did this, then your router may still be using its default factory-set credentials. If that's the case then note down the brand and model (e.g. brand: Linksys, model: WRT54GL) from the web config (it is usually listed there either on the page itself or in the web browsers' title bar) and [http://www.routerpasswords.com/ look up the default credentials].
 
 
 
 
 
==See Also==
 
*[[MegaGlest]]
 
*[[Multiplayer]]
 
[[Category:MG]]
 
[[Category:Multiplayer]]
 
[[Category:HOW-TOs]]
 

Please note that all contributions to MegaGlest are considered to be released under the Creative Commons Attribution Share Alike (see MegaGlest:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)