From now on, apple doesn't accept any updates or new apps without ipv6 support. Do we have to update luasocket or socket.lua files for this? Or is it already implemented?
By the look of it gideros uses a quite old version of luasocket which doesn't support IPv6. Newest luasocket (2.1) claims to have added IPv6 support, time for an upgrade into gideros maybe ?
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
As per article you posted, I think you don't need to update luasocket at all.
1) use server names (like domain or hostname for local connections) instead of server's ip address 2) change ip function to getaddrinfo function if you are using it.
broadcast doesn't exist on ipv6 (as far as I'm aware), so if running on an ipv6 only network and you do broadcast then you have to change that too.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
I have not tested or done anything related to ipv6 but again from your posted link, tcp function should work just fine, if you use servername and not ip directly.
The main problem is that majority of webservers out there are using ipv4, so if apple would really do what they say they do, it means you would not be able to browse any website on your ios phone. So they would never do that.
They seem to be only blocking using hardcoded ip addresses which are in ipv4 format. And thats it. All the rest should work as expected.
Okay I got it now. But I am using ip address to connect socket. Because I have multiple servers for game play. When game initialized my main server(with domain name) sends ip address for socket connection which is ipv4. I need to find solution for it I guess.
just create one subdomain per ip address and point to each of them. Then allocate them as you do, but give them the server number instead.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Comments
Newest luasocket (2.1) claims to have added IPv6 support, time for an upgrade into gideros maybe ?
Likes: SinisterSoft, antix
If it is a requirement for iOS, then I may need to have a go at it too since my app use luasocket.
https://deluxepixel.com
https://coronalabs.com/blog/2016/05/27/apple-ios-and-the-ipv6-deadline/
But, I still dont know how to update luasocket in Gideros. Isnt it possible to make new version of Gideros with new luasocket any time soon?
I really need to update it Apple declines my app.
1) use server names (like domain or hostname for local connections) instead of server's ip address
2) change ip function to getaddrinfo function if you are using it.
https://deluxepixel.com
The main problem is that majority of webservers out there are using ipv4,
so if apple would really do what they say they do, it means you would not be able to browse any website on your ios phone.
So they would never do that.
They seem to be only blocking using hardcoded ip addresses which are in ipv4 format. And thats it. All the rest should work as expected.
Thanks for help btw.
https://deluxepixel.com
UrlLoader is working but socket.tcp method returns not connected error even if I am using host name with a port.
address is: onlinewordhunt.com
port is : 105
https://deluxepixel.com
Likes: antix, totebo