Genymotion - 哪个IP设置etc / hosts文件通过域名访问主机的本地Web服务器? [英] Genymotion - which IP set in etc/hosts file for access host's local webserver via domain?

查看:1586
本文介绍了Genymotion - 哪个IP设置etc / hosts文件通过域名访问主机的本地Web服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在原来的模拟器我可以把自己的etc / hosts文件与主机的(PC)的列表地域与此IP地址的文件:

in original emulator I can push own etc/hosts file with list of host's (PC) local domain with this IP address:

10.0.2.2 web.loc

10.0.2.2 web.loc

哪个IP我必须使用Genymotion仿真器(网络中虚拟机的设置被设定为VirtualBox虚拟主机只有以太网适配器,知识产权在模拟的Andr​​oid机是192.168.56.101。我尝试192.168.56.1,但这不能正常工作。

Which IP I must use for Genymotion emulator (network in virtual machine setting is set as "VirtualBox Host-Only Ethernet Adapter", IP in simulated Android machine is 192.168.56.101. I try 192.168.56.1 but this not work.

感谢您的帮助。

编辑:

我用,而不是仅主机的网络地址转换,现在我可以连接通过其真正的IP地址到主机PC。

I used NAT instead of Host-Only for network and now I can connect to host PC via its real IP address.

推荐答案

10.0.3.2 是genymotion虚拟机的本地主机IP。

10.0.3.2 is the localhost IP from genymotion vm machine.

这篇关于Genymotion - 哪个IP设置etc / hosts文件通过域名访问主机的本地Web服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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