Loopback is always 127.0.0.1 - by definition. That is a TCP/IP thing, not an Android thing.
As for connecting emulators on two systems - I think it's not easy to make it work, if at all possible, since the emulator is likely to NAT its network connections, and traversing a NAT in the inbound direction takes some effort. The usual rules for NAT should apply - emulator A would have to connect to the real IP address on machine B, and then you'd have to find a way to forward certain incoming connections on machine B to your application running inside emulator B. Having same addresses inside both emulators doesn't matter, since they are not visible from the outside. However, this setup is likely to work in the real world very poorly, or not at all (except over Wifi). Cellular operators can NAT their data networks, and then you won't be able to accept inbound socket connections. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 17.08.2010 23:00 пользователь "kypriakos" <[email protected]> написал: Hi all, looking over the online guide for the emulator and after some googling i still have some questions on this - the guide focuses on emulator instances running on the same machine. However, I was trying to see how that maps for emulator running in a distributed fashion. If a node A (with IP address 129.10.52.x) in LAN A is running Emulator A (which will have the default IP address of 10.0.2.15:portA) wants to communicate with a emulator B (which will also have the default IP address of 10.0.2.15:portB) running on node B (with IP address 129.10.53.x) in LAN B how is the port forwarding setup in this case? The same way as if both emulator were running on the same machine? And why when I print the IP address of the emulator running on any of the nodes what's displayed is the loopback address 127.0.0.1 and NOT 10.0.2.15 which is the IP address that each emulator is assigned? Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected]<android-developers%[email protected]> For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

