a tool to attach socket server