Re: [codenameone-discussions] Re: Why does Socket.getHostOrIP() return localhost ?

2016-09-22 Thread Gareth Murfin
how could it be done on the server side though? I want the IP of the client, I dont see how the server could work it out ? On 22 September 2016 at 04:49, Shai Almog wrote: > This is usually done on the server side where it is more reliable as the > IP might be 192.168.*

Re: [codenameone-discussions] Re: Why does Socket.getHostOrIP() return localhost ?

2016-09-21 Thread Shai Almog
This is usually done on the server side where it is more reliable as the IP might be 192.168.* which will give you nothing. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails

Re: [codenameone-discussions] Re: Why does Socket.getHostOrIP() return localhost ?

2016-09-21 Thread Gareth Murfin
on Android.. is it problematic? I saw some native code for android that claims to work, not tried yet. My client wishes to identify which country the user is in via their ip (some sort of traceroute I assume) - that is why we need the ip. I guess I could visit whatsmyip.com and scrape it somehow.

[codenameone-discussions] Re: Why does Socket.getHostOrIP() return localhost ?

2016-09-20 Thread Shai Almog
On which OS? Notice that getting the current host/IP is problematic. -- 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