web2py.py has 2 useful parameters: -i and -p.
Respectively, they make the application listen on the address specified 
after -i and at the port specified with -p.
To avoid the widget from popping up, you should also pass the -a parameter 
to supply a password.

Special bonuses: there is a special value to pass to the -i option that 
makes web2py listen on all possible network interfaces (0.0.0.0) and a 
special value to pass to the -a option to keep the last password set 
(<recycle>).

Summarizing, try to start the first time web2py with

web2py.py -i 0.0.0.0 -p 8000 -a mypassword 

replacing the red part with your own password... then kill the process (or 
hit ctrl+c to let it terminate). From now on, you can start web2py simply 
issuing

web2py.py -i 0.0.0.0 -p 8000 -a '<recycle>'

and web2py won't ask for a single thing.

BTW: all commandline options are documented here 
<http://web2py.com/books/default/chapter/29/04/the-core#Command-line-options>




On Thursday, January 29, 2015 at 3:51:36 PM UTC+1, Aydin S wrote:
>
> Hi, how to run web2py without a need to specify the IP? 
> Running machine is linux. I know how to modify the file widget.py to 
> eleminate the need for password, but I'm stuck to get it work with an 
> pre-selected IP, meaning that to get web2py server to run from public IP 
> always and not to ask me to select it. 
> Any advice, comment or help is appreciated. 
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to