简体   繁体   中英

make a chat between computer with socket in the Python

Hello i want to make a chat between two different computer.

Computer Number 1 is server and connected to the Wi-Fi Number 1.

Computer Number 2 is client and connected to the Wi-Fi Number 2.

But my problems is: Computer Number 2 can't connect to the Computer Number 1 it actually for that the Computer Number 2 can't find the server IP.

What should i do?

You could use the broadcast adress to send first message to the server. Then the server would respond to client and establish a connection.

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