Can you show your complete code again, for Server and Client? A Server listens, the Client connects and stays connected, it doesn't need to listen. What happens when you try to print something to the client socket? A little debug output and code would be helpful here.