Socket server script