I have run com.codename1.io.Socket.getHostOrIP() on Galaxy 4 and getting  
(localhost 127.0.0.1) back
I need the IP address assigned to my wifi connection like 192.168.1.123

Please advise.

On Tuesday, February 17, 2015 at 2:36:01 PM UTC-5, [email protected] wrote:

> Awesome! Thats exactly what I needed. Thanks :)
>
> On Tuesday, February 17, 2015 at 10:41:12 AM UTC-5, [email protected] 
> wrote:
>>
>> I have the need to capture the users IP address and pass that along as 
>> part of a call. What I used was
>>
>> import java.net.InetAddress;
>>
>>
>> text += ":" + InetAddress.getLocalHost().getHostAddress();
>>
>>
>> but that doesn't seem to be supported by the platform... Can someone 
>> suggest one that will work?
>>
>> Thanks
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/c5d32a5f-3546-46c9-8dbf-4491ab6c4898%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to