coure2011
coure2011

Reputation: 42444

Port forward not working to set a local web server

I have just created a simple web server using node server and it's running fine. I can access it from the same PC by going to address http://127.0.0.1:1337.

Now I want to access that web server from my WAN IP. I got my my using whatismyip and got something like 110.36.xxx.xxx.

When I tried http://110.36.xxx.xxx:1337, I got:

Firefox can't establish a connection to the server at 110.36.xxx.xxx:1337.

Here is the screenshot how I created the port forwarding in my router:

enter image description here

What's wrong here?

Upvotes: 1

Views: 1320

Answers (1)

WeMakeSoftware
WeMakeSoftware

Reputation: 9162

Localhost is only accessible from the same pc. You have to launch your webserver either on address 0.0.0.0 (it will be available on all network interfaces) or 192.186.0.5 so that it is accessible from your wan interface

Upvotes: 1

Related Questions