简体   繁体   中英

How to connect two computers using python

我想连接两台计算机并在它们之间发送消息,我不确定为什么套接字模块对我不起作用。那么还有其他方法可以连接两台计算机吗?

If you wanna solve this problem,

First thing , you should check two computer's network connecting, in terminal you can use one computer of yours to typing ping ${target_computer_address} and check terminal's echo to make sure two computer network connection is working.

Second thing , you can use python to open a tcp port to listen and print recv data in screen ,and in other computer telnet previous computer ip:port just typing someting, make sure python can print you's typing character correct.

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