How to connect to localhost from VS Android Emulator

烂漫一生 提交于 2019-11-28 12:03:16

The network addresses specified on http://developer.android.com/tools/devices/emulator.html#networkaddresses will not work for the Visual Studio Emulator for Android (well, except the very last one, which is the standard localhost IP address).

The address 169.254.80.80 is expected to work as a loopback to the host. There seems to be a bug regarding connectivity back to the host using that address on images running Lollipop (21) and above. I have logged a bug internally for this.

VS studio Emulator work very fine and fast

see the screen shot that how you can connect VS Emulator to localhoat

The previous answer is perfect but Android studio 3+ emulator need to add IP and port on proxy under setting.

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