Advertisement
Magil

Port Forwarding

Jul 6th, 2013
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.71 KB | None | 0 0
  1. b) PORT FORWARDING
  2.  
  3.  
  4. When you host a server, be it for file transfers or hosting, the software listens for incoming traffic on a specific port range. If these ports are closed, whatever clients that attempt to connect to you will be forcefully rejected, and no connection will be established. Most computer firewall software allows you to add programs to their exception list automatically the first time you execute them and attempt a connection, but most router firewalls do not.
  5.  
  6. The purpose of this tutorial is to teach you how to open these ports manually. Please note that each router brand and model has a very different kind of interface, so it's impossible to write a universal guide.
  7.  
  8. The following website http://portforward.com/english/routers/port_forwarding/routerindex.htm has specific, detailed guides for a great number of router models and brands and has a wealth of information on how to open ports for the most popular software. But, alas, it does not cover each and every router in existence. I encourage you to try to find yours on this list. If it is not listed, following a guide for another router model from the same manufacturer should help.
  9. At any rate, I will try my best to explain how to open ports using screenshots from a 2wire 1000hg router as an example.
  10.  
  11. Step 1:
  12. On Windows 7, open up the start menu, and look for the Search programs and files box.
  13. On Windows XP or Vista, click Run.
  14.  
  15. Step 2:
  16. Type “cmd” (minus quotes) in the Search programs and files box (Run box in XP or Vista), and press Enter on your keyboard.
  17.  
  18. Step 3:
  19. Type “ipconfig /all” (minus quotes) in that window, and then press the Enter key.
  20.  
  21. Step 4:
  22. Make note of the Default Gateway IP, and then close this window.
  23.  
  24. Step 5:
  25. Open your web browser, and type in your Default Gateway’s IP address. You'll see something like this:
  26. http://portforward.com/english/routers/port_forwarding/2wire/1000hg/1000hg1.jpg
  27.  
  28. Step 6:
  29. Click the Firewall Settings button (or whatever equivalent on your router's interface). You'll see something like this:
  30.  
  31. http://portforward.com/english/routers/port_forwarding/2wire/1000hg/1000hg2.jpg
  32.  
  33. Depending on your router, you'll see a list with every device currently connected to your router along with their MAC and IP address, and some firewall exceptions if someone else had set some beforehand. Some routers also keep a list of every device that has ever connected to your router, even if it isn't connected at the moment (if you suspect someone stealing your internet connection, you can find out now).
  34.  
  35. Step 7:
  36. Click the Firewall Settings button. Use the Select a computer box to choose a computer to forward ports to. This box contains a list of computer names that are visible on your network. You'll see something like this:
  37.  
  38. http://portforward.com/english/routers/port_forwarding/2wire/1000hg/1000hg3.jpg
  39.  
  40. Some routers feature drop down menus listing every device with varying degrees of detail, while others show a table with each device. Alongside these, most routers also have a predetermined list with the most popular applications preconfigured with the rules necessary to get it running without much hassle. I strongly advise against fiddling around with DMZ Mode unless you know what you're doing or trust whoever decides to connect to your server.
  41.  
  42. Step 8:
  43. Click the Add a new user-defined application link. You will get a Window similar to this one, regardless of router:
  44.  
  45. http://portforward.com/english/routers/port_forwarding/2wire/1000hg/1000hg4.jpg
  46.  
  47. The Application Name can be whatever you want, but it’ll help you identify it in the future if you name it exactly like the software you’re forwarding ports for, or something similar. Just remember that you can't use a name that's already being used by another Exception Rule.
  48.  
  49. Next you'll choose Protocol: TCP or UDP. Some routers will only allow you to choose one or the other, while others give you a third option to choose both simultaneously.
  50. Depending on the software your opening ports for, you'll need to look at the documentation to find out which one it needs. If it doesn't say which, it's better to open ports for both protocols.
  51. If the router doesn't give you the option pick both protocols simultaneously, you will need to make 2 separate entries for the same port.
  52.  
  53. Next we have a Port Range. In this section, we'll writing down the port(s) we’ll be opening. If you're just opening a single port, only write it down in the first box and leave the other one blank.
  54. If you're opening, for example, 100 ports between port 1500 and 1600, you write down 1500 in the first box and 1600 in the second.
  55.  
  56. Everything else can be safely ignored. You can add a Definition or Application Type if you want, but it isn't really necessary.
  57.  
  58. After you're done adding your port, click Add Definition or Accept or anything that allows you to save your changes.
  59. There are some routers that allow you to make Exception Rules, but don't automatically assign them to your computer/device’s IP. In that case, there should be an option to assign them manually.
  60.  
  61. --- --- --- ---
  62.  
  63. I assume that even though this isn’t a standardized guide, it will at least give you an idea on how to open ports… in the event that your router is not listed on portforward.com, that is. You should be able figure it out by comparing these screenshots to your own interface.
  64. As practice, you should try opening these ports:
  65.  
  66. - ZSNES
  67. 7845 (TCP/UDP)
  68.  
  69. - KegaFusion
  70. 5394 (TCP/UDP)
  71.  
  72. - OpenKaillera P2P client
  73. 27886 (TCP/UDP)
  74.  
  75. - GGPO
  76. 6000-6009 (UDP)
  77. 7000 (TCP)
  78.  
  79. - CSMAME
  80. 5805 (TCP/UDP)
  81.  
  82. If all else fails, install a VPN like Hamachi or Tunngle. It might not be practical, and you will need to convince people to install it to play with you, but it's the only other viable alternative.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement