Use Python on Android phone to shelves FTP server

Source: Internet
Author: User

When we do not have a data cable to share the file on the phone to the computer, a simple FTP server

can help us solve the problem quickly. Take photos from the shared phone as an example:

First, the computer, mobile phone access to the same wifi.

Then, use Qpython on your phone to execute the following script (do not close it and know that the FTP service will also shut down)

Import OS Import simplehttpserveros.chdir ('/storage/sdcard0/dcim/camera') Simplehttpserver.test ()

After that, you only need to enter it in your computer browser.

IP address of ftp://Phone: FTP Server port number

can be accessed.

For example:

ftp://172.16.5.3:8080

Where the IP address can be viewed via the ifconfig command on the phone, the port number is output in the record window after executing the script.

Use Python on Android phone to shelves FTP server

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.