Может имя “localhost” в виртуальной машине быть отображенным на IP хост-машины?

Вы не можете только продвинуть одиночное нажатие клиент VNC (проверьте ultraVNC сайт) на терминалы с пользовательским сценарием входа в систему или запускают скрипт перед часами бизнеса?

Одиночное нажатие клиент VNC является синглом, предварительно сконфигурировало exe, меньше чем 500 кибибитов в размере. Конечный пользователь должен был бы дважды щелкнуть по нему, но это может заставить их чувствовать себя уполномоченными :-)

0
задан 29 July 2013 в 18:42
2 ответа

No, you cannot do that.

RFC 2606, defining the "reserved TLDs" specifically prohibit it so pretty much all TCP/IP stack will always statically bind "localhost" to the local loopback address (127.0.0.1)

If you're using IIS as a web server, you can use application request routing to create a "proxy" rule that will then fe6tch that document from another host.

3
ответ дан 4 December 2019 в 11:52

If you want to access the web application on the host from guest using the name localhost you can use some kind of reverse proxy. The proxy would be installed on the guest machine.

Your web browser running on the guest will connect to the reverse proxy running on the guest too so it can use the standard localhost name pointing to 127.0.0.1. The reverse proxy will then make a connection to the real web server running on the host machine.

  1. The mentioned Application Request Routing is one example which runs on IIS but it seems that only IIS 7 and newer is supported. As you run the web server on the host it does not matter which server you run on the guest.
  2. Apache can be configured as a reverse proxy..
  3. Squid can act as a reverse proxy too.
  4. There is also for example Proxyma.
1
ответ дан 4 December 2019 в 11:52

Теги

Похожие вопросы