Answer the question
In order to leave comments, you need to log in
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:
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question