this is my first post. I'm a new italian, newbie, android programmer.
I have a problem to test my application.
I would like to make a peer 2 peer application. This net is coordinated by a server to work as naming service.
This server have a ping service. Every client periodically open a socket to server to renew IP (that in real world can sometimes change).
With my emulator, all instances that run concurrently have 127.0.0.1
To contact the right peer, I must know the EMULATOR NAME, where previously I setted port forward by adb.
Somebody know how I can know the EMULATOR NAME of the running instance in java code???
Sorry for my strange request, and for my very bad english.
Thanks in advance,