I want to ping the emulater from the server through LAN or WIFI
I开发者_StackOverflow want to ping the emulator from the server through LAN or WIFI can an one tell the procedure it helps me a lot.
This is not supported.
First, ping is ICMP traffic which the emulator forwards don't support.
Second, the emulator forwards only accept traffic on the host's loopback interface, not its external interfaces - ie, you can only directly contact the emulator from within the PC it's running on.
If you wanted to use a supported format such as TCP, you could write a daemon that runs on the PC and forwards traffic from the external interface to the port on the internal that's then forwarded into the emulator.
Pretty much the only time you can directly contact an android device is when it's an actual hardware device sitting on the same wifi network or LAN as the machine that wants to contact it; not when it's an emulator and not when it's a phone on a mobile network.
精彩评论