I haven't tried it. I recommend you to use real devices instead. It will be simpler and more reliable.
I've tried it this way but I didn't understand how to use it or if you like, how to set it up. I don't understand how to:
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>
Or where should i set it up. Except redirection, this is the only thing i know where and how to set it up. Real devices are good but I don't have 2 mobile phones with android.