NAT-host in this case is the Mac hosting the Parallels VM.Īttach the VM guest's network interface to the 'Host-only Network'. So I have to forward NAT-host-IP:22222 to VM-IP:11111. To connect from a third host in a different network to the VM nc-server I want to use nc NAT-host-IP 22222. After starting the server and connecting the client you can simply enter some text, which is sent to the other console. To connect to this server I would run nc server-IP 11111 from a host in the same network. You may also specify a source port: nc -p source-port server-IP port. To run a server enter nc -l -4 port and to connect to this server use nc server-IP port. If you insist on a NAT'ed network do the following:
en0 or en1) and configure it with a IP/netmask in the respective network. Instead of attaching the VM's network interface to the 'Shared Network' use a bridged interface (e.g.
There are two solutions for your problem with Parallels Desktop 11 (this doesn't apply to Parallels Desktop Pro/Enterprise 11, which both provide a convenient interface to configure port forwarding - nonetheless the solutions should work also in those enhanced versions):