Server-client connection in a chat program - problem | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Server-client connection in a chat program - problem

My problem shortly: there is a chat program. The code was in a book, so I think it must be OK. When I run the server and client on the same computer it works. But when I try to start the client program on other computer (the server is already running), this one don't comunicate with the server. What should I do or what do I do wrong? Any suggestion?

4th Jan 2018, 11:28 AM
István Vámosi
István Vámosi - avatar
3 Answers
+ 2
Check out the port address and let me know how you connected two computers.
4th Jan 2018, 11:36 AM
Mohd Zaki
Mohd Zaki - avatar
+ 1
surely client is using different port
4th Jan 2018, 11:38 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
Could be a firewall problem. Check it without firewall turned on to see.
4th Jan 2018, 9:49 PM
Bagshot
Bagshot - avatar