0

I want to connect two computers and send messages between them,and I'm not sure why the socket module doesn't work for me.So is there any other ways to connect two computers?

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

3 Comments

Thanks.This is working in my home but doesn't work in my school...And I don't know why python didn't appear in windows firewall "Allow an app through Windows Firewall" section.I need to adjust Windows firewall,allowing it connect to the network then only my code will work.Do you know any way to make python go through Windows Firewall?
I can see python in windows firewall "Allow an app through Windows Firewall" section using my computers at home but not school.
@ChinHongTan maybe your school's computer dosen't open windows firewall , in fact , some people often disable windows firewall after install windows, for professional user , windows firewall is useless .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.