08 September 2010

Get Virtual PC to see your localhost on Windows 7

I use Virtual PC to test on IE7 and need it to see the host machine's localhost (IP address). This is disabled by default via the Win 7 firewall. You can re-enable it by following these steps:
  1. On the host machine, open the Control Panel and choose the Windows Firewall.
  2. In the firewall, go to "Allow a program or feature through Windows Firewall."
  3. In the "Allowed programs and features" list, scroll down to "World Wide Web Services (HTTP) and check the box under "Domain."
  4. Click OK
Now go to Start and type cmd into the search box. This will bring up the command window. Type ipconfig and hit enter to see your machine's IP address. Now, back in the Virtual PC's IE window, type the IP address, followed by the path to your app. For example, if you access the app via http://localhost/myapp/mypage.htm, you'd type this in the Virtual PC's IE address: http://000.000.000.000/myapp/mypage.htm (replace the 0's with your IP address).

No comments: