well, how easy is it... how easy is it to create a small server with access to a website? server, for example, create a small server in termux python, if possible, let it work on HTTP so that others who connect to the access point can connect and view the content of the site through a web browser and the content that is in the index.html file, which I want to specify as web link to the page to view.
#๐ Python, Termux+HTTP == server for webviews like web site?
12 messages ยท Page 1 of 1 (latest)
@heady spade
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Closes after a period of inactivity, or when you send !close.
It seems like you're just describing an HTTP server? There's a basic one in the standard library, do python -m http.server --bind 0.0.0.0 or something
I want to see the created http server (connected only to 0.0.0.0:8000) by connecting with another device to the Wi-Fi access point created by the smartphone, but it says that I do not have access from another device... perhaps if I connected with device to a wi-fi access point, why does this happen and what can be done so that you can view the same web page on the link 0.0.0.0:8000?
yeah of course this http server.
generally speaking I'd expect it to work, though I don't know much about how hotspots work. what URL are you accessing from the other device?
I'm doubting if termux would work because it's like a virtual machine and idk if it's able to interact by other device to it
You don't view it on "0.0.0.0". The 0s mean "serve the website on all interfaces you can", meaning if the device is connected to multiple networks (e.g. one WiFi, another wired), it will serve it on all of them.
You'll want to still use the device's ip for the shared network.
E.g. http://192.168.0.42:8000
some googling suggests yes: https://reddit.com/r/termux/comments/rlaif3/is_it_possible_to_run_full_webserver_through
Umm, then yes, easy
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.