[WSGI] Tell Python to listen to LAN interface?

Gilles nospam at nospam.com
Tue Mar 26 13:59:31 CET 2013

On Tue, 26 Mar 2013 23:50:36 +1100, Chris Angelico <rosuav at gmail.com>
>According to the docstring, the first argument to make_server() is the
>host name to bind to. Using "localhost" means you're bound to
>, as you see. Use your LAN IP address there, or "" to bind to
>all local addresses - or possibly "::" to bind to all IPv6 addresses
>(try it and see - some systems work with one or the other, others work
>happily with both together).

Thanks Chris. I was thinking it was due to how Python was configured,
and didn't first check that it could be some instruction in the script
itself. It works fine now.

More information about the Python-list mailing list