Flask does not work in termux without Internet

I have python flask server and run it in Termux. Then I have access to this server with address 127.0.0.1:5000
It works on some Android phones. But there are some models don’t work with this application without connection to the Internet. It seems strange.
Is there a way to allow this app to work without Internet?

1 Like

So which app does not work? Termux or your Flask thing?

Flask works if there is Internet connection.
I don’t know what is wrong. Maybe, something wrong with phone or net options. But without Internet on some models there is no result if you connect in browser to 127.0.0.1:5000. It just write (in the address line): offline 127.0.0.1…

Try using the same browser on every phone and see what it does.

I use only chrome

Did you try to access the server from within Termux?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.