Xavier: I don't want to change the ip. I want only to know the ip that
is assigned to the NIC of the phone.
Ed: Sure, but showipaddress.com shows only the ip with which you go
out on the Internet: for example you could be connected to Internet
behind NAT.

I try to explain better my problem:
I'm developing on the emulator because I'm in italy and here there
aren't devices. My app creates a server listening on a port for
incoming connections. On the emulator the address used to bind the
socket is "10.0.2.15", if I want to connect to that server, say from
another host, i have to:
1) make a redirection on the local interface of the host that runs the
emulator (so 127.0.0.1:4444 forwards to 10.0.2.15:4444)
2) redirect my NIC interface to the local interface (say
192.168.2.1:4444 forwards to 127.0.0.1:4444) with a datapipe tool
3) connect from a client to 192.168.2.1:4444
4) start communicating.

Now, in a real device how is this achieved? How many interfaces the
device has? I think it has 10.0.2.15, 127.0.0.1 and the ip address
assigned to the phone by a wifi network. Am I wrong?

Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to