web2py – External connections to your Web App from the network on port 80

If you don’t want to use apache or the like to publish your web2py app then you can use web2py’s own little web server (rocket) by running web2py.py like this:

python web2py.py

This won’t accept external connections however, and it also listens on port 8000 rather than port 80.


So, to allow external connections from web clients on port 80, run web2py.py as follows:

python web2py.py -i -p 80

I keep forgetting this, so it’s getting written down for once and for all!