Thanks so much for the very useful and precise answer. I understood, 
however, what I meant with public IP was not 0.0.0.0, I mean public IP 
assigned to my machine. I don't want to every time check it to see what it 
is because it is dynamic and I want to be able to use web2py's ability to 
read it. I want it always select this IP (192.168.1.000 for example) and 
start the server. Thanks so much my problem with password is solved. by the 
way, my ultimate goal from this is to be able to access the web2py app from 
two machines connected through my router. 
I think this needs some modification in the widget, don't you think so?

quinta-feira, 29 de Janeiro de 2015 às 15:22:50 UTC-5, Niphlod escreveu:
>
> 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