Establishing Client-Server communication using sockets