working socket connection from client