Cannot access Mac's Virtual Hosts from XP Client

Discussion in 'Windows Virtual Machine' started by MichalM, Mar 17, 2011.

  1. MichalM

    MichalM Bit poster

    Messages:
    2
    I am having problem with accessing Virtual Hosts (located on my Mac) from XP installed via Parallels.

    Here's the setup:

    - Mac OS X 10.6.6
    - using pre-installed apache running via Web Sharing (not using MAMP!)
    - several virtual hosts set in apache's config
    - Parallels 6 (latest)
    - Windows XP Pro 64bit installed as Client
    - Network setup set to Shared
    - virtual hosts from Mac added to C:\Windows\system32\drivers\etc\hosts file

    Pinging gateway (Mac) from Windows seems to work just fine, but cannot access websites hosted on it - neither by directly accessing IP nor by VHosts.

    Turning off firewall didn't seem to help.

    What am I doing wrong?
     
  2. MichalM

    MichalM Bit poster

    Messages:
    2
    It was my fault as it turned out.
    I was trying to connect to the gateway IP address, while Mac uses it only for routing. As a machine it retrieves the first available from the range.

    Let's say the network address is 10.57.57.0 with mask 255.255.255.0.
    Parallel's host on Mac sets gateway to 10.57.57.1
    Mac as a machine gets 10.57.57.2, which means it in fact it is visible as 2 physical machines on Parallels' client's network with 2 separate IPs:
    Gateway on Mac: 10.57.57.1
    Mac as a network client on Parallels network: 10.57.57.2
    And the virtual machine gets e.g. 10.57.57.3
     

Share This Page