Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<h2>Network communication Host -> Guest</h2> <p>Connect to the Guest and find out the ip address: </p> <pre><code>ifconfig </code></pre> <p>example of result (ip address is 10.0.2.15): </p> <pre><code>eth0 Link encap:Ethernet HWaddr 08:00:27:AE:36:99 inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0 </code></pre> <p>Go to Vbox instance window -> Menu -> Network adapters:</p> <ul> <li>adapter should be NAT</li> <li>click on "port forwarding"</li> <li>insert new record (+ icon) <ul> <li>for host ip enter 127.0.0.1, and for guest ip address you got from prev. step (in my case it is 10.0.2.15)</li> <li>in your case port is 8000 - put it on both, but you can change host port if you prefer</li> </ul></li> </ul> <p>Go to host system and try it in browser: </p> <pre><code>http://127.0.0.1:8000 </code></pre> <p>or your network ip address (find out on the host machine by running: ipconfig).</p> <h2>Network communication Guest -> Host</h2> <p>In this case port forwarding is not needed, the communication goes over the LAN back to the host.</p> <p>On the host machine - find out your netw ip address:</p> <pre><code>ipconfig </code></pre> <p>example of result:</p> <pre><code>IP Address. . . . . . . . . . . . : 192.168.5.1 </code></pre> <p>On the guest machine you can communicate directly with the host, e.g. check it with ping: </p> <pre><code># ping 192.168.5.1 PING 192.168.5.1 (192.168.5.1) 56(84) bytes of data. 64 bytes from 192.168.5.1: icmp_seq=1 ttl=128 time=2.30 ms ... </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload