Ho Vagrant/VirtualBox con sistema operativo Ubuntu 12.04 LTS. Ho configurato Vagrant per inoltrare la porta ospite 8000 alla mia porta host 8888.Reset connessione durante il port forwarding con Vagrant
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] -- 8000 => 8888 (adapter 1)
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
Quando la macchina virtuale si avvia, comincio un server dev Django sulla porta 8000.
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Va bene grande, posso metterlo in background e posso anche curl localhost:8000
e ottenere qualche uscita dal server
<div id="explanation">
<p>
You're seeing this message because you have <code>DEBUG = True</code> in your
Django settings file and you haven't configured any URLs. Get to work!
</p>
</div>
Ma quando provo a colpire il server dalla mia macchina host con un Firefox/Chrome/TELN sto ricevendo Connection Reset/Connection Lost/ERR_CONNECTION_RESET ecc.
Per prima cosa ho pensato che potesse essere una cosa iptables, ma risulta che Ubuntu ha il permesso di default su tutto. Ho anche spento il firewall sul mio computer host. Come posso arrivare alla fine di questo?
E se si sta utilizzando Rails, e successo per arrivare a questo post Django, il vostro corrispondente 'opzioni rails' sono' rotaie -b 0.0 .0.0' – sameers