Updated TCPServer to use pipes for remote end.