简体   繁体   English

想要从模拟器连接到托管在 IIS 中的本地站点,而不是本地主机

[英]Want to connect to a local site hosted in IIS from the emulator, not localhost though

I want to access www.example.com locally hosted site in IIS.我想在 IIS 中访问 www.example.com 本地托管站点。 Added entry in host file for mapping www.example.com to 127.0.0.1.在主机文件中添加了用于将 www.example.com 映射到 127.0.0.1 的条目。 Not able to access it using Android emulator.无法使用 Android 模拟器访问它。

Tried 10.0.2.2 as well in emulator.在模拟器中也尝试过 10.0.2.2。 http://10.0.2.2 this address is accessing the default website of IIS. http://10.0.2.2这个地址是访问IIS的默认网站。 But not able to access newly added site www.example.com.但无法访问新添加的站点 www.example.com。 Working fine for desktop browsers.适用于桌面浏览器。

您可以使用安全隧道使您的本地 ip 在线说“ http://10.0.2.2 ”。您可以使用Ngrok它使您的 ip/(发布在该本地 ip 上的站点)在线可用,以便您能够访问您的网站在线

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 iis托管的网站与本地网站不同 - iis hosted web site differs from local web site 如何配置iis,以便可以从远程Windows pc连接到iis托管的localhost - how to configure iis so that I can connect to my iis hosted localhost from a remote windows pc 从Android模拟器连接到本地IIS ASP.NET网站的问题 - Issues Connecting to Local IIS ASP.NET site from Android Emulator 无法从 android 模拟器连接到 localhost - Can't connect to localhost from android emulator 如何从另一台PC访问IIS托管站点 - How to access IIS hosted site from another PC 从SSIS包转向IIS上托管的网站 - Turn of web site hosted on IIS from SSIS package 使用JavaScript从托管网站重定向到本地IIS服务器页面 - Redirect to Local IIS server page from Hosted website in javascript 如何将网站从IIS托管站点更改为ASP.Net Development Server托管站点? - How do I change a web site from an IIS hosted site to an ASP.Net Development Server hosted site? 无法从远程计算机查看我的IIS托管站点,但IIS页面已打开 - unable to view my IIS hosted site from remote machine but IIS page open 无论如何,是否可以从托管网站连接到本地SQL Server数据库? - Is there anyway to connect to local SQL Server database from hosted website?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM