Client that read random value

Hello,
i wrote a client, that shuold read the value from a server.
When i run the client, in the pc where are installed the server, it read the right value from server, when i run the client from my laptop, it read the random value.
:confused:

A little bit of code might help us help you.

Do you check if connection is still alive (or even established)?