How to access localhost from a Genymotion android

2019-01-07 07:52发布

I can not figure out how to access localhost from a Genymotion android emulator. By the way, Im using MAMP.

9条回答
Viruses.
2楼-- · 2019-01-07 08:21

The IP returned by ipconfig dit not work for me. However 10.0.3.2 worked for me even though the IP address in the Wifi setting is 10.0.3.15.

Genymotion 2.2.0

查看更多
该账号已被封号
3楼-- · 2019-01-07 08:24

Check your Internet Connection on PC first, then Turn on Wifi in your Genymotion Emulator Device

After goto Cmd by Pressing ctrl+r then type Cmd and hit enter you will see an command line window

type ipconfig and hit enter...

here you can see your ipv4 address type it in your Genymotion Emulator Device's Browser now you can connect to your local webserver....

查看更多
SAY GOODBYE
4楼-- · 2019-01-07 08:26

it works for me by using http://192.168.56.1:8080

to know your IP just use the following command

  • for (mac and linux) ifconfig vboxnet0
  • windows command ipconfig vboxnet0

and make sure the port is collect.

I got the answer from : here

查看更多
登录 后发表回答