trying to setup my virtualbox copy of windows xp and have it be able to access my host computer's (win7) IIS 7 express localhost:33369

the virtualbox ipconfig

IP Address:
Default gateway:

the win 7 ipconfig on the virtualbox adapter

 IPv4 Address. . . . . . . . . . . :
 Subnet Mask . . . . . . . . . . . :
 Default Gateway . . . . . . . . . :

in xp, I tried adding staging.com to the ..etc/hosts file, but when loading staging.com up in ie6, it doesn't route to my win7 host's version of localhost:33369.

any idea what I'm doing wrong? I think it works fine for port 80 (since this was working for xampp before).. I'm just not able to run this specific site on IIS's port 80 on the win7 machine. it must be on port 33369

Update: current state, on xp,

  1. i've set staging.com to in hosts file
  2. navigating to stanging.com in ie6, i get my IIS default screen (port 80)
  3. Visual studio -> View in Browser -> launches site on win7 on localhost:33369
  4. in ie6 on xp, i visit staging.com:33369 and am unable to view the site on host machine

The host file entry should be " staging.com" on the guest while the access URL on the guest web browser should be "http://staging.com:33369" instead.

  • Or "" as it is stated as both - basically the entry should be the "default gateway" of the guest ipconfig output. Likewise for the access URL as well.
    – user48838
    Jun 15 '11 at 18:47
  • so I set it up just like you said, when I visit staging.com, i hit the iis default on 80, but when I type staging.com:33369 it doesn't retrieve the page properly
    – tester
    Jun 15 '11 at 18:52
  • I'm on the NAT network adapter mode.. I don't think i have to do any port forwarding or anything else.. very confusing
    – tester
    Jun 15 '11 at 19:00
  • Is your IIS setup for 33369 and not 80 or is it setup for both ports?
    – user48838
    Jun 15 '11 at 19:00
  • You do not need to touch any of port forwarding in this case if the services are on your host. You do need to have your host configured correctly though.
    – user48838
    Jun 15 '11 at 19:04

Not the answer you're looking for? Browse other questions tagged or ask your own question.