Work on socket server