Python Forum
Acces Flask Web App Using Other Devices
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Acces Flask Web App Using Other Devices
#1
I am only able to access the web app using the web browser on my raspberry pi when i key in "127.0.0.1:5000" to the browser. But when i key in the same address to the web browser on my phone it doesnt work despite using the same network.

Since I want to run flask and tkinter at the same time, im using threading.

if __name__=='__main':
    threading.Thread(target=app.run).start()
Also, is there any way to make the web app to devices using different networks?
Reply
#2
you should look at Miguel Grinberg's flask tutorial
The method used will allow for a website that will fit any size display, including phones.
There is a newer edition, which requires a cssh outlay of $39.
I haven't taken the free edition, but expect it to be written in the same careful way.
The tutorial also details publishing your site.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Acces to page denied julio2000 1 8,006 Feb-08-2020, 02:37 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020