add SocketFactory and update LocalTunnelClient