![]() We’re obviously going with the python3 web server command here, but you can also use the Python 2 instant web server if you’d prefer, since both python2 and python3 are available on iSH.Īnyway, while the isn’t a particularly practical solution to web hosting or web development and you likely won’t be using this for anything too serious, it’s still fun and interesting as a proof of concept for us geekier folks. ![]() While the simple web server is running, you’ll see standard logging information appear in the iSH terminal window, showing access times, dates, IP addresses, GET and PUSH requests, 404 errors, and other typical access log information. ![]() If you don’t have a simple index.html file in the current working directory on the iOS device where the python command is being run, then a simple directory listing is shown instead. You’ll probably want to put some basic index.html file at the present working directory where you’re running the python server from. (Example screenshot shows the iOS device IP of 192.168.1.10) Replacing ‘DEVICE-IP-ADDRESS’ with the IP address of the device running iSH and the python web server, you can find the iOS devices IP address in Network Settings if needed. To connect to the iOS web server from another device on the same network, point any web browser to:.To connect to the iOS web server from the same device (localhost), point any web browser to:.When you see the ‘Serving HTTP on 0.0.0.0 port 8000’ message, now you’re ready to connect the web server from either the same device or another:. ![]() At the iSH command line in iOS, enter the following syntax and hit return:.Install iSH on the iPhone or iPad as directed here if you haven’t done so already, otherwise launch iSH.How to Run a Web Server on iOS with iSH and python
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |