Advertisement
acuddlyheadcrab

Port forwarding

May 16th, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.34 KB | None | 0 0
  1.  
  2. Port-Forwarding!
  3.  
  4. Port forwarding is simply making a specific port on your computer accessible from the outside world, or the World Wide Web.
  5.  
  6. “Wuts a ‘Port’, lul??”
  7. You probably know that computers can run locally hosted web applications. Hosted applications, mostly called servers, are bound to a port on the machine they're running on. For instance, the Minecraft server's default port is 25565, Many FTP (file transfer) servers are run on port 80 or 75. Those are just examples though, and I can’t say I actually know why those numbers are common.
  8.  
  9. External/Internal IP
  10. [Firstly]
  11. Routers however are the things that directly interact with the World wide web. Your computer *indirectly* interacts with the rest of the world, via your router. This is because of technical crap and limitations about how routers receive info from the web - basically routers help make the internet faster for computers (rather than 3G-like wireless).
  12.  
  13. Anyways you can prolly guess that Internal internet is the wifi around your router. External is the rest of the World Wide Web. Thusly, an external IP address belongs to your router and an Internal IP address belongs to any machine (computers mostly) that use the router.
  14.  
  15. That’s about it. One other important thing is the default gateway, which is the internal IP adress of your router. The default gateway is important because it is the way to access your router page if you have wifi.
  16.  
  17. 1. Obtain your default gateway
  18. The reliable way of doing it (windows)
  19. - Open cmd (command prompt)
  20. - Enter the command “ipconfig”
  21. - This may show multiple connections. Use your brain here.
  22. - If you’re using wi-fi, you’ll probably be looking for the field under
  23. “Wireless LAN adapter Wireless network...”
  24. - Many routers have a default gateway of 10.10.10.1, 10.10.10.2 or 192.168.0.1
  25. - This work similarly with macs - just use the mac version of command prompt, and you should be okay
  26.  
  27. 2. Enter the default gateway into a web browser’s address bar. In chrome, all you have to do is paste the sucker in there. In other web browsers, you probably want to put http:// in front of it.
  28.  
  29. 3. This should bring up your router’s control panel. This is where it could get tricky. With normal, commercial routers, you will have to enter in a username and password to access it.
  30. - Guess. Many times it’s still the default username and password, which could have usernames like:
  31. - Admin (and many variants of this word)
  32. - User
  33. With passwords like:
  34. - 1234
  35. - admin
  36. - 1234567890
  37. - password
  38. - To access my router I use “admin” as the username and the password.
  39. - You may not be lucky enough to guess the password correctly. Finding it out is up to you then -
  40. some people ask nicely, some may sneak around trying to find it written down somewhere in the manuals
  41. (me). It would probably be much easier to ask.
  42.  
  43. 4. If you’ve gotten to your router page, yay! You (almost) did it! Now you just need to find where to manage forwarded ports.
  44. - Look around. Don’t mess around, look. Get to know your router before you give it a bunch of
  45. commands to do work for you.
  46. - In my router page (Linksys), it’s under “Applications and Gaming”. Your port managing page may have
  47. fields like “Start from”, “End to” and “Protocol”.
  48. - You may want to just google how to do it now that you’ve gotten here. I managed to guess it when
  49. first was learning this, but you may have a more difficult router to deal with.
  50. - Adding a port to forward, you must include:
  51. Application Name
  52. Port number
  53. some routers allow a range of ports. this is where you’d see “start” and “end” fields in the
  54. control panel. Like it says it allows all the ports between those two port numbers to be
  55. forwarded. If you’re only forwarding one port, just use the same number for both of them
  56. IP adress (internal) of your computer (use ipconfig again, if you forgot this)
  57. - They may include these fields too:
  58. Protocol (use the default choice, or guess, then google)
  59. Enable (obvious, but when check it means this port will be forwarded)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement