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<serverPort>
On B's console, set up a redirection from A:localhost:<localPort> to B:<serverPort>
On C, have the client connect to<localPort>

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