Mar 15, 2013

How to easily transfer your files to iPad with Python one liner

If you have files that cannot be easily shared from iTunes to your iPad device, and have access to Python,
simply open a command prompt or terminal in the directory you want to share and enter the command:

python -m SimpleHTTPServer 8000

You can substitute 8000 with any other free port.
Run ipconfig , or ifconfig if you are in  Linux to find your local ip e.g. 192.168.1.2

From your iPad, open safari and go to
http://192.168.1.2:8000
to access and download the files to your iPad.



7 comments:

  1. you have 8000 as the first port, but 8080 as the second.

    ReplyDelete
  2. Also, python -m http.server for python 3.x.

    ReplyDelete
  3. Cool trick. You mismatched the ports though.

    ReplyDelete
  4. The port in the URL needs to match the port in the python command.

    ReplyDelete

Real Time Web Analytics