I am trying to access my local development server over the LAN. 
My environment as follows - 
Host machine - Windows 10
Guest machine - VBOX Running Ubuntu 12.01  
Networking - Bridged Mode
Ubuntu is configured to Static IP - 192.168.2.10
Host IP - 192.168.2.9

I can access the apache server running on port 80 as follows both from 
guest machine and host machine either through the browser address 
192.168.2.10  OR from cmdline wget 192.168.2.10

However, when i run django development server
python manage.py runserver 0.0.0.0:8000 OR python manage.py runserver 
192.168.2.10:8000

and then I try to access the django development server 
- from guest machine - wget 192.168.2.10:8000
- from host machine - wget 192.168.2.10:8000

I get the following error







* wget 192.168.2.10:8080--2015-09-10 18:56:55--  
http://192.168.2.10:8080/Connecting to 192.168.2.10:8080... connected.HTTP 
request sent, awaiting response... 301 MOVED PERMANENTLYLocation: 
http://127.0.0.1/ [following]--2015-09-10 18:56:55--  
http://127.0.0.1/Connecting to 127.0.0.1:80... failed: Connection refused.*

What is going on? I have spent almost 5-6 hours trouble-shooting it; but 
cannot figure out....
Why is it redirecting to 127.0.0.1:80?
Why I can access apache @ 192.168.2.10:80 but not django on 
192.168.2.10:8000??

Below is my netstat
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         
State       PID/Program name
tcp        0      0 localhost:mysql         *:*                     
LISTEN      -               
tcp        0      0 *:netbios-ssn           *:*                     
LISTEN      -               
tcp        0      0 localhost:domain        *:*                     
LISTEN      -               
tcp        0      0 *:ssh                   *:*                     
LISTEN      -               
tcp        0      0 localhost:ipp           *:*                     
LISTEN      -               
tcp        0      0 localhost:postgresql    *:*                     
LISTEN      -               
tcp        0      0 *:smtp                  *:*                     
LISTEN      -               
tcp        0      0 localhost:5433          *:*                     
LISTEN      -               
tcp        0      0 *:microsoft-ds          *:*                     
LISTEN      -               
*tcp        0      0 *:8000                  *:*                     
LISTEN      7547/python     *
tcp6       0      0 [::]:netbios-ssn        [::]:*                  
LISTEN      -               
tcp6       0      0 [::]:ssh                [::]:*                  
LISTEN      -               
tcp6       0      0 ip6-localhost:ipp       [::]:*                  
LISTEN      -               
tcp6       0      0 [::]:smtp               [::]:*                  
LISTEN      -               
tcp6       0      0 [::]:microsoft-ds       [::]:*                  
LISTEN      -               
vik@vik-VirtualBox:~$ 





-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to