TCP Connection Problem
-
Hello all, I hope you're doing well !
I have written a program in QT providing TCP Server-Client connection. From the server, I am starting to listen a port. From client, I am entering the IP address and the port to connect to the server.
It works flawlessly when I try to connect to a computer by typing its IP address. However, although I have build the exact project into another pc, I cannot connect to its IP address from any other computer. Even if I disconnect from the wi-fi and connect to my phone's hotspot to change its IP address, I still cannot connect to it from any other PC. Looks like the problem is about this computer. In brief, I can use it to connect to other computers, but it cannot be a server to welcome the other TCP clients.
What might be the problem, and any ideas to fix it?
Thank you in advance!
-
Hello all, I hope you're doing well !
I have written a program in QT providing TCP Server-Client connection. From the server, I am starting to listen a port. From client, I am entering the IP address and the port to connect to the server.
It works flawlessly when I try to connect to a computer by typing its IP address. However, although I have build the exact project into another pc, I cannot connect to its IP address from any other computer. Even if I disconnect from the wi-fi and connect to my phone's hotspot to change its IP address, I still cannot connect to it from any other PC. Looks like the problem is about this computer. In brief, I can use it to connect to other computers, but it cannot be a server to welcome the other TCP clients.
What might be the problem, and any ideas to fix it?
Thank you in advance!
@Kuvars said in TCP Connection Problem:
What might be the problem, and any ideas to fi
If you can ping the other computer then it's maybe the firewall.
-
@Kuvars said in TCP Connection Problem:
What might be the problem, and any ideas to fi
If you can ping the other computer then it's maybe the firewall.
@Christian-Ehrlicher Once again you are right sir, I have disabled the firewall, and now it allows connections from other devices.