[WSGI] Tell Python to listen to LAN interface?

Chris Angelico rosuav at gmail.com
Tue Mar 26 13:50:36 CET 2013

On Tue, Mar 26, 2013 at 11:26 PM, Gilles <nospam at nospam.com> wrote:
> Hello
> I'm following this tutorial to learn about writing Python apps in
> http://webpython.codepoint.net/wsgi_tutorial

I'm guessing you're using the initialization code from here?


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).


More information about the Python-list mailing list