How can I ping/ssh to my VM from the host only (shared networking mode)?

Discussion in 'General Questions' started by XavierN1, Feb 9, 2022.

  1. XavierN1

    XavierN1 Bit Poster

    [Parallels Desktop 17.1.0 (51516) on macOS Monterey 12.0.1, with various VMs including Ubuntu 18 and 20]

    I would like to be able to ping my VMs (or ssh to them) from the host. Yet, I want to keep the shared networking mode because it hides the VMs from outside the host (and therefore simplifies security of these VMs tremendously). How can I do this?

    I verified that the various VMs I have can ping each other (so it's not a firewall issue), that they have internet access, and that they can access the folders shared from the host. Basically, everything is working as it should. When I ping the VM (with its IP address) from the host, I get timeouts. I understand that this is expected in shared mode, but I would expect that I can manually add a route on my host OS to the virtual subnet created by Parallels. Or that I can configure Parallels' virtual router to allow the traffic, whichever is relevant...

    How can I achieve that?

Share This Page