On Thursday, August 6, 2015 at 8:23:30 PM UTC-7, Dave S wrote: > > > > On Thursday, August 6, 2015 at 7:57:27 PM UTC-7, Zhihong Zeng wrote: >> >> Hello, >> >> I just start using web2py, and get the following questions: >> >> 1) Based on my experience on apache, localhost, 127.0.0..1 and local ip >> address obtained by ifconfig in linux are interchangeable. So I can use ip >> address to visit my web page running in a remote computer in the same >> network. >> But when I run web2py, visiting localhost and 127.0.0.1 are successful >> but not local ip address. >> >> > This depends on how you start up web2py. > > I use > python web2py.py -i 0.0.0.0 -p 8000 > > This accepts both local addresses (wget 127.0.0.1:8000/sample) and remote > access (wget 192.168.129.105:8000/sample). > > I use to use > python web2py.py -i 192.168.129.105 -p 8000 > and that worked if I used the "remote" address from the local machine, but > there were hiccups (IP lease expiration and admin access interactions) and > so I switched to the 0-0 form. >
I think if you use python web2py.py -i 127.0.0.1 -p 8000 nobody can get in from outside. > >> 2) if I use 80 port on web2py server, I get error: Rocket.Error.Port80 >> > > I'm not sure if Rocket excludes that port. If it does not, then you may > have a conflict with another piece of code on your machines, or with a > general restriction on unprivileged users opening well-known ports. > > >> >> I would appreciate any answers to my questions. >> > > With luck, you'll get a good answer. I hope mine helps. > > /dps > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

