I am trying to create a simple client/server system using 2 PCs and c++ code written using winSock2. The code was mostly borrowed from here.
When I run the two programs on the same laptop, and use 'localhost' as an argument to the client. However, the client fails to connect when I try to run it on different computers, using the public IP of the server computer. Any ideas why?