socket-client in both server and client