且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从VS Android仿真器连接到本地主机

更新时间:2021-12-08 22:56:55

http://developer.android.com/tools/devices/emulator.html#networkaddresses 不适用于Android的Visual Studio模拟器(嗯,除了最后一个,即标准本地主机) IP地址).

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).

预期地址169.254.80.80可作为回送主机的功能.在运行Lollipop(21)及更高版本的映像上,使用该地址连接回主机似乎存在一个错误.我已经为此内部记录了一个错误.

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.