Page 1 of 1

Accessing Guest OS from Host without internet connection

Posted: 20. May 2013, 01:59
by CrypticMartyr
I have been looking (googling) for a solution for some time now and while I did find a solution to it, it was not how i wanted it.

You see, what I would like to do is, access the server from my Guest OS via localhost or any other means from my Host OS. Without the need to be connected to the internet or a network. I will be travelling a lot in the next few weeks and would like to be able to continue developing my projects while on the road but do not want to install apache/mysql/php on my host. Essentially i want to jail my dev server.

So far I've been able to use NAT and port forward 127.0.0.1 port 8080 to 10.0.2.15 port 80. That works fine and all but I would much rather have it accessed via port 80. That way i can just create faux domains and access them via mydomain.dev instead of mydomain.dev:8080.

If anyone has a solution or a better alternative, please let me know.


And in case anyone is wondering... I did somewhat RTFM and i've spent a month trying to google, without success.

Re: Accessing Guest OS from Host without internet connection

Posted: 20. May 2013, 10:32
by noteirak
Host-Only mode is the one you're looking for, it provides a virtual NIC to your host and only allow communication with any guest in Host-Only mode on that interface, with its own IP.
See Chapter 6 - Host Only mode in the User Manual for detailed info.

Re: Accessing Guest OS from Host without internet connection

Posted: 20. May 2013, 15:48
by CrypticMartyr
Thanks noteirak. That has at least put me in the right direction. I will post back to this thread if i have any issues.