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
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