Discussion:
[bottlepy] port forwarding on vagrant for bottle
Mono
2015-01-04 05:27:47 UTC
Permalink
Hello All -

I am trying out some of the bottle coding.

I write a service (in a Vagrant environment, thus virtual machine) and *on
localhost:3000 I can see the output*.

However as I am running in Vagrant (guest) and the port 3000 is *forwarded
into host as 3000* as well.

However when I try localhost:3000 from host, I get the error:
*http: error: ConnectionError: HTTPConnectionPool(host='localhost',
port=3000): Max retries exceeded with url: / (Caused by <class
'socket.error'>: [Errno 104] Connection reset by peer)*

I am trying out some things in a Go web development environment and a
JavaScript framework as well. *They can hit the forwarded ports in guest
from host - no problem. Even 3000*.

However, it seems can't get there from bottle or even flask, from host:3000
to guest:3000 - even though 3000 is forwarded.

My file is Controller.py - does the naming convention or directory
structure matter?

Please let me know if any suggestions.

Thank you.

Mono
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.

---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...