Testing multi-device interactions is now easier than ever with the Android Emulator. Whether you are building a multiplayer game, extending your mobile application across form factors, or launching virtual devices that require a device connection, the Android Emulator now natively supports these developer experiences.
Previously, interconnecting multiple Android Virtual Devices (AVDs) caused significant friction. It required manually managing complex port forwarding rules just to get two emulators to connect.
Now you can take advantage of a new networking stack for the Android Emulator which brings zero-configuration peer-to-peer connectivity across all your AVDs.
Interconnecting emulator instances
The new networking stack for the Android Emulator transforms how emulators communicate. Previously, each virtual device operated on its own local area network (LAN), effectively isolating it from other AVDs. The new Wi-Fi network stack changes this by creating a shared virtual network backplane that bridges all running instances on the same host machine.
Key benefits:
- Zero-configuration: No more manual port forwarding or scripting
adbcommands. AVDs on the same host appear on the same virtual network. - Peer-to-peer connectivity: Critical protocols like Wi-Fi Direct and Network Service Discovery (NSD) work out of the box between emulators.
- Improved stability: Resolves long-standing stability issues, such as data loss and connection drops found in the legacy stack.
- Cross-platform consistency: Works the same across Windows, macOS, and Linux.
Use Cases
The enhanced emulator networking supports a wide range of multi-device development scenarios:
- Multi-device apps: Test file sharing, local multiplayer gaming, or control flows between a phone and another Android device.
- Continuous integration: Create robust, automated multi-device test pipelines without flaky network scripts.
- Android XR & AI glasses: Easily test companion app pairing and data streaming between a phone and glasses within Android Studio.
- Automotive & Wear OS: Validate connectivity flows between a mobile device and a vehicle head unit or smartwatch.
The new emulator networking stack allows multiple AVDs to share a virtual network, enabling direct peer-to-peer communication with zero configuration.
Get Started
The new networking capability is enabled by default in the latest Android Emulator release (36.5), which is available via the Android Studio SDK Manager. Just update your emulator and launch multiple devices!
If you need to disable this feature or want to learn more, please refer to our documentation.
As always, we appreciate any feedback. If you find a bug or issue, please file an issue. Also you can be part of our vibrant Android developer community on LinkedIn, Medium, Youtube, or X.
Continue reading
-
Product News
We are excited to announce that official support for Unreal Engine and Godot has arrived for Android XR. We are also launching new tools designed to boost your productivity and enable new XR capabilities: the Android XR Engine Hub and the Android XR Interaction Framework.
Luke Hopkins • 4 min read
-
Product News
With the release of Android 17, we are transitioning into an adaptive first development standard. Your users no longer rely on a single form factor; they transition between phones, foldables, tablets, laptops, automotive displays, and immersive XR environments throughout their day.
Fahd Imtiaz • 4 min read
-
Product News
We’re excited to share Google TV features and developer tools designed to increase the discoverability of your content and prepare your app for future TV experiences.
Paul Lammertsma • 4 min read
Stay in the loop
Get the latest Android development insights delivered to your inbox weekly.