Ad hoc server apk

broken image

Use then a text editor to create a new text file and enter the following code in it: import SimpleHTTPServer So before you can actually write a Python script that turns your Android device into a simple web server, you have to install the latest versions of the SL4A and PythonForAndroid APK packages. This nifty trick is possible thanks to the Scripting Layer for Android software which enables support for several scripting languages, including Lua, Perl, and Python. You might be thinking that you need a dedicated app for that, but you can actually roll out a simple web server using a Python script containing only four lines of code. A simple web server running on your Android device is a perfect solution for ad-hoc sharing and publishing files and documents, which can come in handy in many situations.