[WSGI] Tell Python to listen to LAN interface?

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


Hello

I'm following this tutorial to learn about writing Python apps in
WSGI:

http://webpython.codepoint.net/wsgi_tutorial

On a Linux host with Python 2.6.6 installed, I launched the
"Environment dictionary" sample, but can't connect to it from my
remote Windows host since the application only accepts local queries:

# netstat -tunlp
...
tcp        0      0 127.0.0.1:8051          0.0.0.0:* LISTEN
13110/python

How can I tell the Python interpreter to listen on 0.0.0.0 or at least
192.168.0.0/24?

Thank you.



More information about the Python-list mailing list