The workaround for the way that webdev.webserver is crippled to refuse remote requests is to use a lightweight proxy server running on the same host as webdev.webserver. The remote browser then uses the proxy and its requests appear to webdev.webserver like requests originating from localhost. I've used Privoxy succesfully.
Sample config:
- Configure Privoxy to listen on an IP
address that is routable from your VM
(eg 192.168.1.1:8118). You can put an IP address on a looback on your host OS and use NAT with the client OS.
- Configure your browser(s) in the VM to use
192.168.1.1:8118 for its proxy for all connections including localhost.
- Start your app in webdev.webserver
- With your VM browser go to the same URL as you would with a browser on your host OS (eg
http://localhost:3254
)
From the perspective of webdev.webserver the requests will originate from Privoxy on 127.0.0.1 and it will happily serve them up.
UPDATE
These days, I am using Fiddler2 for this. Fiddler has an option in Tools > Options > Connections to "Allow remote computers to connect." But also note that IISExpress can be configured to accept remote connections.
listen-address
config in the Main Configuration and set it to the appropriate value (listen-address 192.168.1.1:8118
). It works really well and isn't too hard to set-up. – Angeliaangelic