Client-server application between two computers in the same network (using boost::asio)

Posted by Edwin on Stack Overflow See other posts from Stack Overflow or by Edwin
Published on 2013-07-01T23:03:46Z Indexed on 2013/07/01 23:05 UTC
Read the original article Hit count: 96

Filed under:
|
|
|
|

I'm trying to set up a basic communication between my desktop PC and my laptop (latter one using wireless connection) both being in the same network, using the boost::asio tutorials: synchronous client and synchronous server (in c++).

When I run both the server and client on the same machine (using the localhost and the datetime port as parameters), it works splendidly. But if I try to set up the laptop as server (tested it with netstat -anb from the command prompt, it is indeed running and listening to port 13 as it's supposed to, and I even deactivated the firewall to make sure it doesn't cause any problems), I cannot connect to it with the client (set up on the PC), no matter what IP I tried (localhost, and basically any IPs that ipconfig -all gave me).

So no matter what I tried, I cannot find the correct address that which the client can use to connect to the server. Could anyone help me please?

© Stack Overflow or respective owner

Related posts about c++

Related posts about connection