Hi guys i have a question how can i interconnect two android emulator instances and how can i test if the connection is successful? After interconnection i want to use it with socket programming.

Android developers page says:

Set up the server on B, listening to 10.0.2.15:<serverPort>
On B's console, set up a redirection from A:localhost:<localPort> to B:10.0.2.15:<serverPort>
On C, have the client connect to 10.0.2.2:<localPort>

But I don't understand how and where can I set it up.
Please help me.