# What version of Luasocket, no IPv6?

**URL:** <https://forum.defold.com/t/what-version-of-luasocket-no-ipv6/8310>\
**Category:** Questions\
**Created:** [May 13, 2017, 6:57am UTC](https://forum.defold.com/t/what-version-of-luasocket-no-ipv6/8310 "2017-05-13T06:57:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreas.strangequest](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/andreas.strangequest/32/3622_2.png) [@andreas.strangequest](https://forum.defold.com/u/andreas.strangequest)\
**Post date:** [May 13, 2017, 6:57am UTC](https://forum.defold.com/t/what-version-of-luasocket-no-ipv6/8310/1 "2017-05-13T06:57:41Z")

</div>

Hi, I am wondering what version of luasocket you are using in Defold. Does it support IPv6?

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [May 13, 2017, 7:22am UTC](https://forum.defold.com/t/what-version-of-luasocket-no-ipv6/8310/2 "2017-05-13T07:22:44Z")

</div>

We use LuaSocket 3.0-rc1. It does support IPv6. If you open socket.lua in builtins you’ll see the helper function to connect using IPv6.

```
function _M.connect6(address, port, laddress, lport)
    return socket.connect(address, port, laddress, lport, "inet6")
end

```

---

<div class="post-metadata">

**Author:** ![andreas.strangequest](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/andreas.strangequest/32/3622_2.png) [@andreas.strangequest](https://forum.defold.com/u/andreas.strangequest)\
**Post date:** [May 13, 2017, 7:26am UTC](https://forum.defold.com/t/what-version-of-luasocket-no-ipv6/8310/3 "2017-05-13T07:26:27Z")

</div>

Thanks Britzl, yes I just saw it when I read through socket.lua.  
We’ve been rejected from Testflight (yeah I hate having to submit for review even if it’s only for external beta tests) due to not working in IPv6 networks. Really cannot figure out why and I’m going through [this](https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/UnderstandingandPreparingfortheIPv6Transition/UnderstandingandPreparingfortheIPv6Transition.html) right now to see why it would fail. Doesn’t have access to IPv6 network right now so it’s kinda hard to test.

Anyone had experience with similar and know beforehand what the reason might be?

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [May 13, 2017, 7:29am UTC](https://forum.defold.com/t/what-version-of-luasocket-no-ipv6/8310/4 "2017-05-13T07:29:29Z")

</div>

Strange. [We added IPV6 support in Defold 1.2.83](https://forum.defold.com/t/defold-1-2-83-has-been-released/2140) (for http.request). LuaSocket has had support for it since for as long as I can remember.

---

<div class="post-metadata">

**Author:** ![andreas.strangequest](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/andreas.strangequest/32/3622_2.png) [@andreas.strangequest](https://forum.defold.com/u/andreas.strangequest)\
**Post date:** [May 13, 2017, 7:31am UTC](https://forum.defold.com/t/what-version-of-luasocket-no-ipv6/8310/5 "2017-05-13T07:31:38Z")

</div>

Will try to setup an environment next week to see if I can reproduce. Not much info from Apple. Doesn’t work. Make it work. … kinda

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [May 13, 2017, 7:32am UTC](https://forum.defold.com/t/what-version-of-luasocket-no-ipv6/8310/6 "2017-05-13T07:32:44Z")

</div>

> [@andreas.strangequest](#):
>
> Not much info from Apple. Doesn’t work. Make it work. … kinda

Yeah, that sucks. Let us know if we can support you guys in any way.

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [May 14, 2017, 12:00am UTC](https://forum.defold.com/t/what-version-of-luasocket-no-ipv6/8310/7 "2017-05-14T00:00:27Z")

</div>

Test on a network with IPv4 disabled? Probably a way you can set it up with just your computer and test device?

Was this testing done when Defold had IPv6 added? Apple tests on a network with only IPv6 and no IPv4.

---

<div class="post-metadata">

**Author:** ![andreas.strangequest](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/andreas.strangequest/32/3622_2.png) [@andreas.strangequest](https://forum.defold.com/u/andreas.strangequest)\
**Post date:** [May 15, 2017, 2:02pm UTC](https://forum.defold.com/t/what-version-of-luasocket-no-ipv6/8310/8 "2017-05-15T14:02:09Z")

</div>

Yes I’m doing this a little blindfolded right now. Don’t know why it cannot connect client to server.  
I’m trying to setup a small sandbox environment on local network but I really can’t get a hang of it.

This is the answer from Apple:

**To resolve this issue, please run your app on a device while connected to an IPv6 network (all apps must support IPv6) to identify any issues, then revise and resubmit your app for review.**

**If we misunderstood the intended behavior of your app, please reply to this message in Resolution Center to provide information on how these features were intended to work.**

Unfortunately time is very short and I was supposed to send this version to our partners. A thing that Apple doesn’t allow. They really don’t seem to have any system that allows early prototypes to be tried out by a selected group of people without it being fully reviewed as a releasable app.

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [May 15, 2017, 7:41pm UTC](https://forum.defold.com/t/what-version-of-luasocket-no-ipv6/8310/9 "2017-05-15T19:41:35Z")

</div>

Testflight used to be its own service not owned by Apple. There are still private competitors to Testflight which can do what it used to be able to do without the Apple approval middleman.

I’ve not tried any of these but one may work for you [TestFlight Alternatives: Top 11 Mobile Beta Testing Tools for 2017](https://rollout.io/blog/testflight-alternatives-ios-beta-testing/)

You’ll still need to get their device uuids and add to the provisioning profile etc. probably those services have an easy way for your partners to sign up and link their device then you can get the uuid, add to profilem, make and upload build.
