accessing django site on guest from host

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
jhjr
Posts: 1
Joined: 24. Dec 2014, 21:58

accessing django site on guest from host

Post by jhjr »

Host: OSX 10.9.5
Guest: Ubuntu Server 14.04

I'm going through a django tutorial and have been able to setup Ubuntu Server as guest OS and can ssh to the virtual machine from the host, but I am unable to access the django site from host. I have tried port forwarding 8000 and host-only network but both are unsuccessful. I would appreciate any help!
ags799
Posts: 2
Joined: 9. Jan 2015, 03:00

Re: accessing django site on guest from host

Post by ags799 »

Bumping because I have the exact same issue. I can SSH from host to guest. I can access the webserver from the guest. I cannot access it from the host. I have tried forwarding guest port 8000 to host port 8000. No impact.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: accessing django site on guest from host

Post by Perryg »

If you can ping or ssh to the guest then the network in VirtualBox has done its thing. Port restrictions, firewall, and app configuration should be directed to the app developer or guest OS developer.

Note: you only need to port forward if using VirtualBox NAT.
Post Reply