How to enable Genymotion emulator to use the WIFI internet the host is using

半城伤御伤魂 提交于 2019-12-12 11:02:19

问题


The app I am running on Genymotion emulator needs internet. The internet does not seem to work on the Genymotion emulator. I tried to confirm this by opening the browser, and this is what I got:

I am running Windows 7 on my laptop and using the Wifi internet. I opened Oracle VM Virtual box, navigated to Settings > Network, and the following two images show what I see there:

So how do I enable the emulator to use the internet from my computer?

Note: Please tell me in layman terms. I saw articles and questions talking in terms of IP addresses and other things which are strange for me.


EDIT 1:


回答1:


goto settings in the device and turn on the device wifi, in the android OS. You haven't mentioned it in your post I'm just covering the basic solutions here.




回答2:


Simply choose the Host-only Adapter for Adapter 1 and NAT for Adapter 2. Make sure the cable-connected is selected(ticked). Host-only can be used to create a network containing the host and a set of virtual machines, without the need for the host's physical network interface. Instead, a virtual network interface (similar to a loopback interface) is created on the host, providing connectivity among virtual machines and the host.

This works for me. Hope it helps.




回答3:


No of the above solution worked for me, I fixed the issue by changing the ip address settings on the adapter by going to File >> Preferences >> Network in VirtualBox:

Adapter IP: 192.168.217.2 Network Mask: 255.255.255.0

DHCP Server Server Address: 192.168.217.100 Server Mask: 255.255.255.0 Lower Address Bound: 192.168.217.101 Upper Address Bound: 192.168.217.254




回答4:


Try just turning on the WiFi in GenyMotion and selecting the WiredSSID.

I know this question been answered, but thought a picture would be easy to understand. Hope it helps.




回答5:


In Genymotion, Go to settings of your device and make sure adapter that you have selected is NAT(Default) not bridged or anything.. Now, make sure that your PC is connected to Internet... It will work , most probably



来源:https://stackoverflow.com/questions/32132821/how-to-enable-genymotion-emulator-to-use-the-wifi-internet-the-host-is-using

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!