2

I have an application with port 9901 and hosted in online server.
If i check this application from the same server with http://127.0.0.1:9901/ or http://127.0.0.1:9901/ the application is run correctly.

But if i access from another computer with http://domain.com:9901 or http://x.x.x.x:9901 (x is server IP). I could not get any response.

What could be wrong?

Here is the netstat of my server:

$ netstat -l | grep 9901
tcp6       0      0 [::]:9901               [::]:*                  LISTEN
GusDeCooL
  • 158
  • 9
  • 1
    Are you positive that you're using the right IP address? what you get from ifconfig isn't necessarily accurate. See here: http://askubuntu.com/questions/95910/command-for-determining-my-public-ip. As for domain name, have you set up this server with a nameserver/dns/etc.? – Mitch Jan 25 '16 at 17:43
  • @Musher yes, i positive my ip address is right – GusDeCooL Jan 26 '16 at 08:52

1 Answers1

1

I was battling with the same issue with my Node.js web app just yesterday, and eventually found the culprit and the solution.

The reason for my issue was because I did not set up the port forwarding on my router (BT Home Hub 5). When you're behind a router, and you want to set up a server that is externally visible, you need to "tell" the router which device to forward incoming requests to when they are made with your server's port.

Every router's documentation is different, so you'll need to look it up, but it shouldn't be too difficult to figure out.

Liran H
  • 111