Note that there are some explanatory texts on larger screens.

plurals
  1. POWin7 Host and Ubuntu Server on Virtualbox guest port forwarding issue
    primarykey
    data
    text
    <p>I'm trying to set up what I believe to be a rather common Django development server configuration, but I'm having issues with the port-forwarding between the guest OS and the host OS.</p> <p>I'm running:</p> <ul> <li>Win7 Host </li> <li>VirtualBox 4.1.2 </li> <li>Ubuntu Server 11.04 Guest.</li> </ul> <p>I'm connecting to the VirtualBox with NAT and using the built-in VirtualBox Port Forwarding functionality (from the guest's Settings -> Network -> Port Forwarding menu) such that my .vbox XML contains the following section:</p> <pre><code>&lt;NAT&gt; &lt;DNS pass-domain="true" use-proxy="false" use-host-resolver="false"/&gt; &lt;Alias logging="false" proxy-only="false" use-same-ports="false"/&gt; &lt;Forwarding name="guestdjango" proto="1" hostip="127.0.0.2" hostport="9080" guestport="8080"/&gt; &lt;Forwarding name="guesthttp" proto="1" hostip="127.0.0.2" hostport="8080" guestport="80"/&gt; &lt;Forwarding name="guestssh" proto="1" hostip="127.0.0.2" hostport="2222" guestport="22"/&gt; &lt;/NAT&gt; </code></pre> <p>From the host, I can SSH/SFTP into the guest on port 2222, I can see the nginx "Welcome to nginx!" at 127.0.0.2:8080. </p> <p>After verifying these, I set up Django and run the Django runsever:</p> <pre><code>python manage.py runserver 127.0.0.1:8080 </code></pre> <p>With Lynx from the guest, I get the "Congratulations" Django page at 127.0.0.1:8080.</p> <p><em>However</em>, when I navigate to 127.0.0.2:9080 from the host, I get "The connection was reset."</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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