Connected client to server with socket