Mar 25, 2011 11:44 PM
(This post was last modified: Apr 23, 2011 06:53 AM by carecare.)
Portforwarding made simple
- Difficulty (Easy): **********■*****■ -
[IMG]http://img821.imageshack.us/img821/999/firwall.png[/IMG]
I made this tutorial in order to help people having problems with portforwarding (seems to be a big problem here)
follow these simple steps and you'll be portforwarding in no time.
What is portforwarding?
Before we begin I want you to have an understanding of that portforwarding means and stands for. Simply put; Portforwarding is a technique used for mapping ports to different local hosts, It's only applied to if your behind a router.
Heres an example
If your behind a router with ie. 2 computers connected to it, you will all share the same external IP address for example: "241.25.61.251", and you will all have a separate & unique internal IP address such as "192.168.0.2"
Every IP address starting with 192.168.x.x (x = 0-255) is a network IP and is only used inside networks.
Since all traffic goes through the router first, it needs to have certain rules in order to redirect appropriate traffic, do consider this dilemma:
External IP Address: 241.25.61.251
[img]http://img815.imageshack.us/img815/1584/usertc.png[/img] User 1 (Network IP: 192.168.0.108)
[img]http://img815.imageshack.us/img815/1584/usertc.png[/img] User 2 (Network IP: 192.168.028)
If User 1 & User 2 both ran a web server on port 8080, which of the web servers would the user reach while connecting to "241.25.61.251"? The answer is no one, since the router doesn't know where to PORT FORWARD.
--
STEP 1 Grab your local network IP Address
The first thing we want to do is finding our Network IP/Lan IP (192.168.x.x)
Start->Run->CMD->ipconfig
[img]http://img109.imageshack.us/img109/4350/57313282.png[/img]
We can now see that our Network IP is: 192.168.0.108
STEP 2 Log in to your router
In order to actually port forward we need to know the address of our gateway, since our Network IP was "192.168.0.108" our gateway address is: "192.168.0.1" (gateway is .1 by default)
[img]http://img852.imageshack.us/img852/5470/gatewayw.png[/img]
Now we proceed by entering the URL address in the web browser:
[img]http://img94.imageshack.us/img94/5673/dlink.png[/img]
Almost every router comes password protected, if you haven't messed around with your router before your username/password should be factory settings. If you are unsure about the factory settings try these combos:
username:password
Spoiler (Click to View)
Also check Portforward.com's list: here
If neither work you have 2 options, either google "your router + default password" trying to find the factory username/password or reset your router to factory settings by searching google for "your router + how to reset router" or similar.
STEP 3 Port forward!
Ok, username "admin" and password "12345" worked, we are now inside the router. What we want to do now is to locate the "port forward" option. In my case it's located here: Advanced->Port forwarding
[img]http://img846.imageshack.us/img846/8148/dlinkpf.png[/img]
Ok, our goal was to open up the port 8080 for User 1 with the Network IP "192.168.0.108" , I always include both TCP/UDP although it's not necessary with UDP in this case but it doesn't hurt :)
When were happy with the changes we click "Save Settings" and wait for the router to restart!
STEP 4 Check whether the port is forwarded
Ok, now we successfully port forwarded the port, let's try and see if it worked. A good tool for this is by using "canyouseeme" which serves as a open port tester. Of course if a web server was the case we could just enter the URL but I want to show this method as well since it can be useful in debugging problems.
Here's a test on port 8080 before port forward:
[img]http://img850.imageshack.us/img850/6195/cyto.png[/img]
Notice the "Connection timeout" response, that means the router didn't now where to forward the port and therefore ignored the response. We could of course simply check if the the port forwarded worked manually by entering the URL.
Here's a test on port 8080 after the port forward:
[img]http://img600.imageshack.us/img600/6081/cysuc.png[/img]
Notice how the response now says "Success" that means the port forward was successful, external users can now access the port 8080 from User 1 "192.168.0.108"
Here's another test on port 8080 after the port forward:
[img]http://img24.imageshack.us/img24/2341/cyref.png[/img]
If it says "Connection refused" it simply means that the current service on the port isn't operative, whenever it says connection refused you can be sure that the port forward has worked, the problem may be in your firewall.
##
FAQ
Before I start adding entries to this list, always make sure your firewall is off if any problems should occur, especially windows firewall.
Q: How can I find my External IP?
A: Visit any what's my IP site, I recommend: http://www.whatsmyip.org/
Q: How can I find my Network IP?
A: Go to: Start-Run->CMD and write "ipconfig" youre network IP should be in the row "IPv4 Address"
will be updated
Resources & Links
Portforward.com
The best resource for port forwarding - they have information on basically every router available.
will be updated
- Difficulty (Easy): **********■*****■ -
[IMG]http://img821.imageshack.us/img821/999/firwall.png[/IMG]
I made this tutorial in order to help people having problems with portforwarding (seems to be a big problem here)
follow these simple steps and you'll be portforwarding in no time.
What is portforwarding?
Before we begin I want you to have an understanding of that portforwarding means and stands for. Simply put; Portforwarding is a technique used for mapping ports to different local hosts, It's only applied to if your behind a router.
Heres an example
If your behind a router with ie. 2 computers connected to it, you will all share the same external IP address for example: "241.25.61.251", and you will all have a separate & unique internal IP address such as "192.168.0.2"
Every IP address starting with 192.168.x.x (x = 0-255) is a network IP and is only used inside networks.
Since all traffic goes through the router first, it needs to have certain rules in order to redirect appropriate traffic, do consider this dilemma:
External IP Address: 241.25.61.251
[img]http://img815.imageshack.us/img815/1584/usertc.png[/img] User 1 (Network IP: 192.168.0.108)
[img]http://img815.imageshack.us/img815/1584/usertc.png[/img] User 2 (Network IP: 192.168.028)
If User 1 & User 2 both ran a web server on port 8080, which of the web servers would the user reach while connecting to "241.25.61.251"? The answer is no one, since the router doesn't know where to PORT FORWARD.
--
STEP 1 Grab your local network IP Address
The first thing we want to do is finding our Network IP/Lan IP (192.168.x.x)
Start->Run->CMD->ipconfig
[img]http://img109.imageshack.us/img109/4350/57313282.png[/img]
We can now see that our Network IP is: 192.168.0.108
STEP 2 Log in to your router
In order to actually port forward we need to know the address of our gateway, since our Network IP was "192.168.0.108" our gateway address is: "192.168.0.1" (gateway is .1 by default)
[img]http://img852.imageshack.us/img852/5470/gatewayw.png[/img]
Now we proceed by entering the URL address in the web browser:
[img]http://img94.imageshack.us/img94/5673/dlink.png[/img]
Quote:Do notice that every router has different layout, however the functions are basically the same, what we ware after here is the "port forwarding option" for more help regarding your router check: http://portforward.com/english/routers/p...rindex.htm
Almost every router comes password protected, if you haven't messed around with your router before your username/password should be factory settings. If you are unsure about the factory settings try these combos:
username:password
Spoiler (Click to View)
Also check Portforward.com's list: here
If neither work you have 2 options, either google "your router + default password" trying to find the factory username/password or reset your router to factory settings by searching google for "your router + how to reset router" or similar.
STEP 3 Port forward!
Ok, username "admin" and password "12345" worked, we are now inside the router. What we want to do now is to locate the "port forward" option. In my case it's located here: Advanced->Port forwarding
[img]http://img846.imageshack.us/img846/8148/dlinkpf.png[/img]
Ok, our goal was to open up the port 8080 for User 1 with the Network IP "192.168.0.108" , I always include both TCP/UDP although it's not necessary with UDP in this case but it doesn't hurt :)
When were happy with the changes we click "Save Settings" and wait for the router to restart!
STEP 4 Check whether the port is forwarded
Ok, now we successfully port forwarded the port, let's try and see if it worked. A good tool for this is by using "canyouseeme" which serves as a open port tester. Of course if a web server was the case we could just enter the URL but I want to show this method as well since it can be useful in debugging problems.
Here's a test on port 8080 before port forward:
[img]http://img850.imageshack.us/img850/6195/cyto.png[/img]
Notice the "Connection timeout" response, that means the router didn't now where to forward the port and therefore ignored the response. We could of course simply check if the the port forwarded worked manually by entering the URL.
Here's a test on port 8080 after the port forward:
[img]http://img600.imageshack.us/img600/6081/cysuc.png[/img]
Notice how the response now says "Success" that means the port forward was successful, external users can now access the port 8080 from User 1 "192.168.0.108"
Here's another test on port 8080 after the port forward:
[img]http://img24.imageshack.us/img24/2341/cyref.png[/img]
If it says "Connection refused" it simply means that the current service on the port isn't operative, whenever it says connection refused you can be sure that the port forward has worked, the problem may be in your firewall.
##
FAQ
Before I start adding entries to this list, always make sure your firewall is off if any problems should occur, especially windows firewall.
Q: How can I find my External IP?
A: Visit any what's my IP site, I recommend: http://www.whatsmyip.org/
Q: How can I find my Network IP?
A: Go to: Start-Run->CMD and write "ipconfig" youre network IP should be in the row "IPv4 Address"
will be updated
Resources & Links
Portforward.com
The best resource for port forwarding - they have information on basically every router available.
will be updated



