Are you aware that IP address obtained by a device may not be accessible 
from the internet, so although it gets an IP there's little point in 
using the IP for anything?

When I'm on T-Mobiles network the IP address I get is behind their 
infrastructure and they don't allow incoming connections to it. When I'm 
on my Wi-Fi network my router will prevent incoming connections.

Given these in mind are you still looking for an answer to your question?

Al.

Tez wrote:
> Hi,
>
> I have a few questions regarding IP addrs
>
> 1. When a device acquires an internet data connection, it obtains its
> own IP addr, right?
> 2. How do I obtain this IP when i'm running the emulator?
>
> I've tried using the InetAddress class of java.net, but i get
> 127.0.0.1 as the IP, What i want is the IP addr if the host on which
> it is running
>
> Cheers,
> Earlence
>
> >
>   


-- 
======
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to