Monday 15 February 2010

Access django server on virtual Machine -



Access django server on virtual Machine -

i know there lot of similar question haven't able create work.

i have vm (virtualbox) running centos 7

i set 2 adapters, nat , host-only adapter. way have net output on vm , can come in via ssh using ip (192.168.56.102) host

now, i'm trying reach django server running on invitee host

i've tried running @ 0.0.0.0:8000 , 192.168.56.102:8000 got

$ curl 192.168.56.2:8000 curl: (7) failed connect 192.168.56.2:8000; no route host

i've read solutions using bridge instead of nat, need maintain output net , access via ssh

finally opened port 8000 on invitee firewall , working now.

for centos 7, followed steps centos 7 - open firewall port

firewall-cmd --zone=public --add-port=8000/tcp --permanent firewall-cmd --reload

django virtual-machine virtualbox

No comments:

Post a Comment