TCP connection working and connection established with server