#๐Ÿ”’ Python, Termux+HTTP == server for webviews like web site?

12 messages ยท Page 1 of 1 (latest)

heady spade
#

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.

plain badgerBOT
#

@heady spade

Python help channel opened

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.

marsh whale
#

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

heady spade
#

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?

heady spade
marsh whale
carmine ether
#

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

fervent charm
carmine ether
#

Umm, then yes, easy

plain badgerBOT
#
Python help channel closed

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.