Page 1 of 1

IPv6 support?

Posted: Wed Jan 15, 2014 3:10 pm
by malte
Hi all,

I got the first customers complaining of an app not supporting IPv6 Networks. What I do in the app is opening a socket. What happens is that the hostname can not be resolved (this is what liveCode reports). So my question is: Does liveCode support IPv6 Adresses? If not, can this be implemented? What would be involved? Where would one need to look?

Re: IPv6 support?

Posted: Thu Jan 16, 2014 5:10 pm
by BvG
You try it out yourself of course!

first you need ip's to test with. Get a known, working ipv6 as well as an ip v4 address (Google is your friend):
https://developers.google.com/speed/pub ... docs/using

test 1:
try to find out their domain name, with the hostAddressToName() function:
8.8.8.8 --> google-public-dns-a.google.com
2001:4860:4860::8888 --> 0.0.7.209

test 1 result:
seems to be doing something, there's a result but not an error, however the result seems garbled and useless.

test 2:
try to connect a socket using 'open socket to "<ip here>"':
8.8.8.8 --> <nothing>
2001:4860:4860::8888 --> not a valid port

test 2 result:
does not work!


conclusion:
DNS integration is weird, but sockets do not work so it doesn't matter, it's not going to work anyway.

Note that there's no socket support on mobiles, and urls are implemented differently, so you'd need to test it there yourself (however, knowing that LC uses iOS or Android supplied url services, most likely ipv6 will work on mobiles).