远程连接到WebDev.WebServer.exe [英] Connect remotely to WebDev.WebServer.exe

查看:98
本文介绍了远程连接到WebDev.WebServer.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  1. 开发ASP.Net网站.
  2. 运行IE8.
  3. 需要在IE6下测试网站.
  4. MultipleIE6安装被IE8安装打断(无法在文本框中键入,是的,我删除了缓存,是的,我重新注册了dll).
  5. 创建运行IE6的VPC.
  6. 无法连接到主机WebDev.WebServer.exe.

有什么方法可以配置WebDev.WebServer.exe,使其能够接受远程连接?

Is there any way to configure WebDev.WebServer.exe so that it will accept remote connections?

推荐答案

webdev.webserver拒绝远程请求的方法的变通办法是使用运行在与webdev.webserver相同主机上的轻量级代理服务器.然后,远程浏览器使用代理,并且它的请求像来自本地主机的请求一样出现在webdev.webserver上.我已经成功使用了 Privoxy .

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.

示例配置:

  • 配置Privoxy以侦听IP 可从VM路由的地址 (例如192.168.1.1:8118).您可以将IP地址放置在主机OS上的后备地址上,并将NAT与客户端OS一起使用.
  • 在VM中配置您的浏览器以使用 192.168.1.1:8118为其所有连接(包括本地主机)的代理.
  • 在webdev.webserver中启动您的应用程序
  • 使用您的VM浏览器,请访问与主机OS上的浏览器相同的URL(例如http://localhost:3254)
  • 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)

从webdev.webserver的角度来看,请求将源于127.0.0.1上的Privoxy,它将很高兴为它们提供服务.

From the perspective of webdev.webserver the requests will originate from Privoxy on 127.0.0.1 and it will happily serve them up.

更新 这些天,我正在为此使用Fiddler2. Fiddler在工具>选项>连接到允许远程计算机进行连接"中具有一个选项.但也请注意,可以将IISExpress配置为接受远程连接.

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.

这篇关于远程连接到WebDev.WebServer.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆