简体   繁体   中英

How to connect and transfer file between two computers in different ISP using python?

I was wondering what will be the best pythonic (preferably free, not interested in paid cloud servers) way to communicate between two computers in different ISP? I have a couple of videos which I want to transfer to another machine in entirely different ISP and vice versa.

There are two sides involved firstly the server side. Its hard to code it here in limited space but the server will be hosting while you will be making a client computer which will be transmitting the data which can done directly by using open() to open the file and then transfer it over a network.

So,

Step 1: establishing the connection use library like socket to do so

Step 2: open the required file and send it over the network

Step 3: Terminate the session

You can refer to the following link to get the idea

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM