You can use the redir console command to set up redirection as needed for an emulator instance. There are two ways to set up network redirection: using emulator console commands and using the adb tool, as described below.Įach emulator instance provides a control console that you can connect to, to issue commands that are specific to that instance. To communicate with an emulator instance behind its virtual router, you need to set up network redirection on the virtual router. Currently, the emulator does not support IGMP or multicast. Depending on the environment, the emulator might not be able to support other protocols such as ICMP, used for "ping". There are no built-in limitations on port numbers or ranges except the one imposed by your host operating system and network. However, apps connect through the emulator, not directly to hardware, and the emulator acts like a normal app on your workstation. Also note that the address If you want to access services running on your development machine loopback interface a.Īndroid apps running in an emulator can connect to the network available on your workstation. That means that if you have two instances running concurrently on your machine, each will have its own router and, behind that, each will have an IP address of The instances are isolated by a router and can not see each other on the same network. The virtual router for each instance manages the Note that the same address assignments are used by all running emulator instances.
An emulated device can't see your development machine or other emulator instances on the network. The following sections introduce the emulator network architecture and capabilities. The emulator provides versatile networking capabilities that you can use to set up complex modeling and testing environments for your app.