Redirect internal IP to external

I did what you told be and asked to my friend try "myexternalIP:50892" on his browser, but it didn't worked at all.

Screenshots from my router configuration.

DZnaJ.jpg


yvp9g.jpg
 
You shouldn’t need to be messing with port triggering at all.

Does the Virtual Servers Setup automatically open the port, or do you need to manually open it?

Is the machine at 192.168.1.2 running a firewall, and if so have you allowed traffic on the required port?

Is your friend remembering to include the http:// before the WAN address?

CanYouSeeMe.org is useful for checking that ports are open.
 
You shouldn’t need to be messing with port triggering at all.

Does the Virtual Servers Setup automatically open the port, or do you need to manually open it?

Is the machine at 192.168.1.2 running a firewall, and if so have you allowed traffic on the required port?

Is your friend remembering to include the http:// before the WAN address?

CanYouSeeMe.org is useful for checking that ports are open.

He probably wasn't using "http://" :p But why is this necessary?

I tried using CanYouSeeMe.org but even with the port opened it didn't worked, according to the site the problem is that there is no route to host.
 
Last edited:
Is your firewall on that machine setup to allow access to that port?
Can you access it from another machine on your LAN using 192.168.1.2:50892 ?
 
Is your firewall on that machine setup to allow access to that port?
Can you access it from another machine on your LAN using 192.168.1.2:50892 ?

There is not any kind o firewall or other blocker installed/running on the PC in 192.168.1.2

I also can't access the page through other machine.
 
If it's a Windows machine, do a netstat -a from a command prompt and see if the machine is listening on port:

C:\Users\temp>netstat -a

Active Connections

Proto Local Address Foreign Address State
TCP 0.0.0.0:135 LT004690:0 LISTENING
TCP 0.0.0.0:139 LT004690:0 LISTENING
TCP 0.0.0.0:445 LT004690:0 LISTENING
TCP 0.0.0.0:2869 LT004690:0 LISTENING
TCP 0.0.0.0:3389 LT004690:0 LISTENING
TCP 0.0.0.0:5357 LT004690:0 LISTENING
TCP 0.0.0.0:5556 LT004690:0 LISTENING
TCP 0.0.0.0:8192 LT004690:0 LISTENING
TCP 0.0.0.0:8193 LT004690:0 LISTENING
TCP 0.0.0.0:8194 LT004690:0 LISTENING
TCP 0.0.0.0:17500 LT004690:0 LISTENING
TCP 0.0.0.0:49152 LT004690:0 LISTENING
TCP 0.0.0.0:49153 LT004690:0 LISTENING
TCP 0.0.0.0:49154 LT004690:0 LISTENING
TCP 0.0.0.0:49158 LT004690:0 LISTENING
TCP 0.0.0.0:49168 LT004690:0 LISTENING
TCP 0.0.0.0:65506 LT004690:0 LISTENING
TCP 0.0.0.0:65507 LT004690:0 LISTENING

You should one that says
TCP 0.0.0.0:50892 YOURMACHINENAME:0 LISTENING

If not, the software is not working.
If you have one, then there is a firewall or something else blocking.... either that or the software if configured to be bound to 127.0.0.1 and not 192.168.1.2
 
Then something is blocking it dispite you saying there is no firewall on. What are you using for the software to host pages?

Microsoft Web Matrix

If it's a Windows machine, do a netstat -a from a command prompt and see if the machine is listening on port:



You should one that says
TCP 0.0.0.0:50892 YOURMACHINENAME:0 LISTENING

If not, the software is not working.
If you have one, then there is a firewall or something else blocking.... either that or the software if configured to be bound to 127.0.0.1 and not 192.168.1.2

There you go, the software seems to be working properly.

wIW5X.jpg
 
Last edited:
It's listening on loopback only and not your LAN ip. You need to tell web matrix to listen on 192.168.1.2.

But, your netstat says you are listening on 192.168.1.4. This would indicate that your LAN IP is not 1.2 at all.....
 
It's listening on loopback only and not your LAN ip. You need to tell web matrix to listen on 192.168.1.2.

But, your netstat says you are listening on 192.168.1.4. This would indicate that your LAN IP is not 1.2 at all.....

No he's not - 0.0.0.0:50892 is the designation for listening on all IP addresses of the machine and perfectly acceptable for inbound connections from a remote host, it is not the loop-back address.

If they're not specifying the protocol (http://) in the address bar then the connection may fail dependent on browser.

Personally, I'd set the external PAT to do TCP 80 to 50892 myself...
 
No he's not - 0.0.0.0:50892 is the designation for listening on all IP addresses of the machine and perfectly acceptable for inbound connections from a remote host, it is not the loop-back address.

If they're not specifying the protocol (http://) in the address bar then the connection may fail dependent on browser.

Personally, I'd set the external PAT to do TCP 80 to 50892 myself...

Quite right, I read the 127 address below and not the 0.0.0.0 bind.

Eitherway, web matrix is a development tool and not exactly suitable for hosting as the level of control given is limited at best.
 
But accessing "http://192.168.1.4:50892" from other machine on the network shouldn't open the page being hosted by WebMatrix?

Probably not.

WebMatrix uses the very limited IIS Express to host the site during development.

If you want to use the site in anger you’ll need to publish it to a full version of IIS. If you want it running locally have a look at ‘Microsoft Web Platform Installer 3.0’, or install it via Control Panel->Programs->Programs and Features’.
 
Back
Top Bottom