O
O
Oleg2021-01-26 11:03:48
Android
Oleg, 2021-01-26 11:03:48

Interconnecting emulator instances. Is there a solution that will just make locale between emulators?

https://developer.android.com/studio/run/emulator-...
An inconvenient way is given in mana.


To allow one emulator instance to communicate with another, you must set up the necessary network redirection as illustrated below.

Assume that your environment is

A is your development machine
B is your first emulator instance, running on A
C is your second emulator instance, also running on A
and you want to run a server on B, to which C will connect, here is how you could set it up:

Set up the server on B, listening to 10.0.2.15:
On the B console, set up a redirection from A:localhost: to B:10.0.2.15:
On C, have the client connect to 10.0. 2.2:


maybe someone saw an addon or utility so that the emulators simply get the ip as via DHCP and can communicate directly with each other. Ideally so that https://developer.android.com/training/connect-dev... works

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question