Port forwarding

anarchy-rabbit

Well-Known Member
Joined
May 17, 2009
Messages
113
Hi,

I've been trying to forward a port. I used portforward.com for help.

1. I set up my static IP.
2. I set up the port forwarding on my router, with my static IP. I set up TCP and UDP with the same port number.

I used the software provided by portforwar.com to check if the port has been forwarded. However, it says it is not.

They suggest it is firewall issues most probably. My windows firewall was activated but I allowed the port I was forwarding. I even turned it off. I have peerblock, but I closed it while I tested the port. I have AVG free edition, but afaik this doesn't have a firewall, right?

Is there something that I am missing?

Thanks!
 

davemc

Executive Member
Joined
Apr 8, 2009
Messages
6,518
I am a bit perplexed about this software that is provided to test if your port is forwarded, it's not quite possible to properly test if a port is open to the outside world from inside your network, unless the software actually asks one of their servers on the internet to test, and then it's a matter of: what is your outside ip address, and did you test on your outside ip address or your inside ip address?
 

anarchy-rabbit

Well-Known Member
Joined
May 17, 2009
Messages
113
Inside IP (I assume this is the one under, LAN, TCP/IP)

This is the first time I'm attempting to forward ports. Is there another way to test it other than software such as the one provided by portforward.com?
 

davemc

Executive Member
Joined
Apr 8, 2009
Messages
6,518
I am not familiar with the software provided by portforward.com.

I would test it as follows:
1. Determine my outside ip address.
2. Open up a session on a machine on the internet or get onto a friend's machine, or establish a dial-up connection to the internet in addition to the connection being forwarded, and try to open a telnet session (run the telnet program to access my outside ip address to the port that is shared) to my forwarded service.
e.g. telnet 196.23.168.147 34213
where 196.23.168.147 would be my outside ip address and 34213 would be the outside port number of the port being forwarded.
 

Other Pineapple Smurf

Honorary Master
Joined
Jun 21, 2008
Messages
14,593
I am a bit perplexed about this software that is provided to test if your port is forwarded, it's not quite possible to properly test if a port is open to the outside world from inside your network, unless the software actually asks one of their servers on the internet to test, and then it's a matter of: what is your outside ip address, and did you test on your outside ip address or your inside ip address?

I nearly smashed a PC and a router one night when I forgot about this golden rule :) ...

Another connection option with a 2nd PC in the house if you do not have a DIALUP account is to connect using your cell phone (3G). EDIT: If you have a Symbian phone or Windows CE / Mobile phone, you can install 3rd party apps that can ssh / telnet: PuTTY
 

anarchy-rabbit

Well-Known Member
Joined
May 17, 2009
Messages
113
What the software seems to do is it attemps to esatablish a link between my computer and their server using the port provided by the user.

I'm a bit confused, what is an inside IP and outside IP? Also how do I determine my outside IP?
 

anarchy-rabbit

Well-Known Member
Joined
May 17, 2009
Messages
113
I nearly smashed a PC and a router one night when I forgot about this golden rule :) ...

Another connection option with a 2nd PC in the house if you do not have a DIALUP account is to connect using your cell phone (3G). EDIT: If you have a Symbian phone or Windows CE / Mobile phone, you can install 3rd party apps that can ssh / telnet: PuTTY

So you suggest that I must install telnet on my phone? Cuz I don't have dial up, only one adsl line, one connection with multiple connections.
 

Other Pineapple Smurf

Honorary Master
Joined
Jun 21, 2008
Messages
14,593
anarchy-rabbit: Your inside IP will be something like 10.0.0.x or 196.152.0.x - then your outside IP is the one assigned by your ISP to your ADSL router, something like 41.240.83.195

But, if you try and PING this IP from your local PC, you will get something like this: (I'm using dyndns)

chrisb ~ $ ping xxxxx.dyndns.biz
PING xxxxx.dyndns.biz (41.240.83.195) 56(84) bytes of data.
64 bytes from xxxxx.dyndns.biz (41.240.83.195): icmp_seq=1 ttl=255 time=1.00 ms
64 bytes from xxxxx.dyndns.biz (41.240.83.195): icmp_seq=2 ttl=255 time=0.679 ms
64 bytes from xxxxx.dyndns.biz (41.240.83.195): icmp_seq=3 ttl=255 time=0.663 ms
^C
--- xxxxx.dyndns.biz ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 0.663/0.780/1.000/0.158 ms
chrisb ~ $



Now, if I do this from a PC not on my home network:

chrisb@xxx [ 12:16:51 ][ ~ ]
> ping xxxxxx.dyndns.biz
PING xxxxx.dyndns.biz (41.240.83.195) 56(84) bytes of data.
64 bytes from dsl-240-83-195.telkomadsl.co.za (41.240.83.195): icmp_seq=1 ttl=246 time=47.3 ms
64 bytes from dsl-240-83-195.telkomadsl.co.za (41.240.83.195): icmp_seq=2 ttl=246 time=44.4 ms

--- xxxxx.dyndns.biz ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 44.452/45.902/47.353/1.466 ms
chrisb@xxx [ 12:16:55 ][ ~ ]
>



Notice the different ping times. What happened here is that the gateway automatically routers the traffic for 41.240.83.195 internally and not via the outside world.
 

chrismine

Senior Member
Joined
Dec 18, 2007
Messages
586
Hi,

I've been trying to forward a port. I used portforward.com for help.

1. I set up my static IP.
2. I set up the port forwarding on my router, with my static IP. I set up TCP and UDP with the same port number.

I used the software provided by portforwar.com to check if the port has been forwarded. However, it says it is not.

They suggest it is firewall issues most probably. My windows firewall was activated but I allowed the port I was forwarding. I even turned it off. I have peerblock, but I closed it while I tested the port. I have AVG free edition, but afaik this doesn't have a firewall, right?

Is there something that I am missing?

Thanks!

I don't know what router you are using but on my Netgear there is a built-in firewall - when you do port forwarding you must also create a firewall rule to open the ports.

Hope it helps.
 

anarchy-rabbit

Well-Known Member
Joined
May 17, 2009
Messages
113
I have a Siemens Giga762SX, they didn't have the tutorial for this specific one, they had Giga762SX but the screenshots seemed identical. Anyways, I'm trying the PuTTY client, I'm guessing I must just put the outside IP in and the port number I forwarded right?

Not sure what supposed to happen if I do it on the local machine or anothe machine on the network. But when I try with one of these it gives an error and says "no rout to host".

I'm going to try connect using my cell then will try it anyways
 

anarchy-rabbit

Well-Known Member
Joined
May 17, 2009
Messages
113
DOH!! My IP was incorrect in my router at the port forwarding page. OK but the scenario in the post above still doesn't work. It says "Network error: connection refused"
 

anarchy-rabbit

Well-Known Member
Joined
May 17, 2009
Messages
113
OK I just tried by connecting using my phone, used PuTTY and sill got the same error msg "Network error: connection refused". Not sure what to try anymore. In the PuTTY client I used SSH(I think - the default one) but I also tried the others and none worked.
 

syntax

Executive Member
Joined
May 16, 2008
Messages
8,656
DOH!! My IP was incorrect in my router at the port forwarding page. OK but the scenario in the post above still doesn't work. It says "Network error: connection refused"

OK I just tried by connecting using my phone, used PuTTY and sill got the same error msg "Network error: connection refused". Not sure what to try anymore. In the PuTTY client I used SSH(I think - the default one) but I also tried the others and none worked.

Actually, the above 2 errors seem a good sign, connection refused usually means just that, ur getting there, but the machine on the otherside is refusing the connection.
Double check the pc firewall to where you are forwarding the port to, its easiest if you telnet to that port from another machine locally, and see if it works.
then you know the port is open and it could be the router's firewall refusing the connection

As a side note, why are u not using dyndns
 

anarchy-rabbit

Well-Known Member
Joined
May 17, 2009
Messages
113
Double check the pc firewall to where you are forwarding the port to, its easiest if you telnet to that port from another machine locally, and see if it works.
then you know the port is open and it could be the router's firewall refusing the connection

They suggest it is firewall issues most probably. My windows firewall was activated but I allowed the port I was forwarding. I even turned it off. I have peerblock, but I closed it while I tested the port. I have AVG free edition, but afaik this doesn't have a firewall, right?

I checked my router, I see there is a firewall. It's strange because when it's ON I get the connection refused error, hoever when I turn the firewall on the router OFF I get an error "Connection timed out". So I don't get it..

As a side note, why are u not using dyndns

I'm not too clued up with networking so don't really know all the apps out there. I just learned about telnet today from cbrunsdonza (I think he also mentioned something biut dyndns), I went to the site, but not really sure which tool I need to use..?

Another thing, should UPnP be on or off, mine is off. I did turn it on but didn't seem to make a diffs.
 

syntax

Executive Member
Joined
May 16, 2008
Messages
8,656
I checked my router, I see there is a firewall. It's strange because when it's ON I get the connection refused error, hoever when I turn the firewall on the router OFF I get an error "Connection timed out". So I don't get it..

I'm not too clued up with networking so don't really know all the apps out there. I just learned about telnet today from cbrunsdonza (I think he also mentioned something biut dyndns), I went to the site, but not really sure which tool I need to use..?

Another thing, should UPnP be on or off, mine is off. I did turn it on but didn't seem to make a diffs.

Ok, the firewall on/off prob includes the port forwarding part, so it wont work if the firewall is off...
What i am saying, is the internal machine you are trying to get to, check its AV firewall/windows firewall etc and see if it is set to allow connections/the connection you are trying to make.

on that note, what port are you forwarding? to what device?
 
Top