How can my router port forward to a VM?

Discussion in 'Installation and Configuration of Parallels Desktop' started by gginnj, Jul 21, 2010.

  1. gginnj

    gginnj Junior Member

    Messages:
    13
    My MAC is running with a 192.168.0.x address, and parallels assigned a 10.211.55.x address to my Fedora VM.

    How do I configure the MAC / Parallels, so that my router will port forward, and my Fedora VM will see the request?
     
  2. Elric

    Elric Parallels Team

    Messages:
    1,712
    I'd suggest to try Bridged-mode of networking. If it works then it will save a lot of efforts.

    Otherwise you need to configure router to forward requests to Mac-Host and then configure one more port-forwarding in the menu "Parallels Desktop" -> "Preferences" -> "Networking" (choose SharedNetworking in combo)
     
  3. gginnj

    gginnj Junior Member

    Messages:
    13
    I tried doing the bridged method by wasn't sure where to go from there.

    Do I pick airport as the interface?
    or do I pick parallels entry as the interface?

    I tried both, but wasn't able to activate the interface (both activate and inactivate were greyed).

    Just to be clear...How do I choose bridged mode for networking? Where I was at, I right clicked
    on the Parallels icon on the taskbar, and select devices or something (I'm not home right now)
    and then chose network. That's where I had the option to use bridging.

    I did notice, that once I did the bridging, and I ran tcpdump, I saw 192.168 traffic, just when
    I did a ifconfig, there was no ip address listed (and the GUI configuration couldn't activate).

    Will the VM get a new 192.168 address, or will it take on the IP of the MAC? which might be a
    problem if both the MAC and the VM have applications listening on the same port.
     
  4. Elric

    Elric Parallels Team

    Messages:
    1,712
    That's it. You need to choose AirPort, not the parallels-entry

    I all works right, then VM must have own IP, not the Mac's one.
    In your case you can try to shutdown the VM, go to the menu Virtual Machine -> Configuration -> Network and enable option "Send Host's MAC address in DHCP". If this doesn't help, you are out of luck and need to configure SharedNetworking
     
  5. gginnj

    gginnj Junior Member

    Messages:
    13
    Working

    I'm not sure why it wasn't working before....

    Setting it to airport, caused the dhcp to pull the IP from the router, set the router to port forward to the new IP
    and it works great. Since I can set a static IP on my router, I know it will get the same IP each time as well.

    That was too easy....

    Thanks
     

Share This Page