Firefox can't establish a connection to the Server at localhost:8000

1,066 views
Skip to first unread message

Satish

unread,
Mar 2, 2014, 7:21:13 AM3/2/14
to erpnext-dev...@googlegroups.com
Hi,

I clean installed Ubuntu and installed ernext as per the instructions.
Installation completed without any errors.
But when I open Firefox and try and go to  http://localhost:8000   it says that Firefox can't establish a connection to the Server at localhost:8000

Regards
Satish

Satish

unread,
Mar 2, 2014, 9:39:28 AM3/2/14
to erpnext-dev...@googlegroups.com
Hi,

Ok now erpnext is running fine on localhost.
But when I try to access it over the network by typing    192.168.1.7:8000    I am unable to connect to erpnext.
However, if I only type   192.168.1.7  I am shown a Welcome Message to Nginx which says Nginx server is successfully installed and running.

So now what configuration should be done in nginx to access erpnext over network.

Regards
Satish

Anirban Majumdar

unread,
Mar 3, 2014, 3:04:17 AM3/3/14
to erpnext-dev...@googlegroups.com
Hi Satish,

By the looks of it, this seems to be a firewall issue. Your default HTTP port (80) is enabled, whereas, all other ports seem to be blocked. Can you verify this? Probably by say configuring nginx to run on port 8000, and seeing whether you get the default nginx page when you access http://192.168.1.7:8000?

Satish

unread,
Mar 4, 2014, 9:24:12 AM3/4/14
to erpnext-dev...@googlegroups.com
Hi Anirban,

Thanks for the help.
I tried running nginx on a different port by modifying  /etc/nginx/sites-enabled/default   I changed 80 to 8000.

As soon as this was done, erpnext started running on  localhost  as well as  localhost:8000. However, over network I could access erpnext only on  192.168.1.7  and  NOT on 192.168.1.7:8000

Strangely enough when I ran   netstat -atlpvn   I noticed that nginx is still running on port 80 . It seems that changing port number in  /etc/nginx/sites-enabled/default  doesn't matter to nginx. It is still running on same port.

However, it is still beyond my understanding that though nginx was still running on port 80, what was blocking erpnext earlier to run.
Also, how is erpnext running just at  192.168.1.7   and NOT at  192.168.1.7:8000.


Regards
Satish
Reply all
Reply to author
Forward
0 new messages