How to go publick with web2py

70 views
Skip to first unread message

stauro...@gmail.com

unread,
Jul 26, 2018, 7:40:22 AM7/26/18
to web2py-users
Hi, guys How i can go public with web2py so i can connect to my web app from other pc's and networks?? I ve been lost ..!

黄祥

unread,
Jul 26, 2018, 9:15:23 AM7/26/18
to web2py-users
pardon, not sure what is exactly means go public, if you want web2py app can be accessed from other pc's and network (lan), perhaps you can set your web server to allow it access from outside
e.g. using rocket (shipped with web2py)
python web2py.py -i 0.0.0.0
another thing is go public means in wan, you can use pythonanywhere or something like that (heroku, amazon, google cloud)
ref:

best regards,
stifan

Stavros Boletis

unread,
Jul 26, 2018, 9:53:55 AM7/26/18
to web...@googlegroups.com
Thanks for your answer that was exactly what i was looking for..i ll try it soon and i ll inform you for any progress.

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

Stavros Boletis

unread,
Jul 28, 2018, 8:28:26 AM7/28/18
to web...@googlegroups.com
i need one more answer..How i can do it on windows?? cause every answer i find is for ubu or linux enviroemnt. When i execute web2py.exe i choose public(0.0.0.0) and the port and it should work?? or i need to do smthng extra ??

To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.

Yoel Benitez Fonseca

unread,
Jul 28, 2018, 9:03:39 AM7/28/18
to web2py
no, you need nothing extra, checkout you antivirus and windows
firewall those 2 can't refuse your inbound connections.
El sáb., 28 jul. 2018 a las 8:28, Stavros Boletis
(<s.bo...@gmail.com>) escribió:
>>> To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Msc. Yoel Benítez Fonseca

Stauros Mpol

unread,
Jul 28, 2018, 9:19:26 AM7/28/18
to web...@googlegroups.com
Thanks again for you help!!

Stauros Mpol

unread,
Jul 28, 2018, 9:26:59 AM7/28/18
to web...@googlegroups.com
I do this but i cant accses it and the ip is 127.0.0.1 as you see.. gonna check my firewall and my anti virus ..

sandeep patel

unread,
Jul 28, 2018, 9:49:32 AM7/28/18
to web...@googlegroups.com
@Stauros
From where you are an executing your app?.in you local computer or from any cloud-based virtual environment like (heroku, amazon, google cloud).

Stauros Mpol

unread,
Jul 28, 2018, 9:50:25 AM7/28/18
to web...@googlegroups.com
From my computer

Anthony

unread,
Jul 28, 2018, 11:33:29 AM7/28/18
to web2py-users
On Saturday, July 28, 2018 at 9:50:25 AM UTC-4, Stauros Mpol wrote:
From my computer

Στις Σάβ, 28 Ιουλ 2018, 16:49 ο χρήστης sandeep patel <patelsa...@gmail.com> έγραψε:
@Stauros
From where you are an executing your app?.in you local computer or from any cloud-based virtual environment like (heroku, amazon, google cloud).

On Sat, Jul 28, 2018 at 6:56 PM Stauros Mpol <stauro...@gmail.com> wrote:
I do this but i cant accses it and the ip is 127.0.0.1 as you see.. gonna check my firewall and my anti virus ..

When you start web2py, the console will always display:

please visit:
        http
://127.0.0.1/

But if you started it with "-i 0.0.0.0", it will be accessible from any device on your internal network. To access the app from devices on your internal network, you will need to know the internal IP address of your computer, which will have been assigned by your router. It will probably be something like 192.168.0.xxx or 10.0.0.xxx.

Are you trying to make the app accessible publicly from the internet as well (i.e., from devices outside your local network)? In that case, you will probably need to configure your router to accept incoming connections over port 80 (or 8000 or some other port if you prefer), and tell it to route such incoming connections to the internal IP address of your computer.

Is this just for testing purposes, or are you expecting to host a public website from your computer?

Anthony


 

Stauros Mpol

unread,
Jul 28, 2018, 11:35:51 AM7/28/18
to web...@googlegroups.com
Its just for testing purpose.Thanks a lot for your answer i will test it soon..😁

--

黄祥

unread,
Jul 28, 2018, 5:58:13 PM7/28/18
to web2py-users
perhaps ngrok could help to make it publicity your local server to internet. 
just download, extract then start the ngrok to tunneling your server port, give the url provided to another if you want to make it public.

best regards,
stifan
Reply all
Reply to author
Forward
0 new messages