IPv6 support + Unity3d

679 views
Skip to first unread message

Александр Богомолец

unread,
Jun 3, 2016, 12:34:58 PM6/3/16
to lidgren-network-gen3
Hello everyone!

I am currently using lidgren with Unity3d.

After Apple applied requirement to about IPv6 networks to life, i have troubles submitting my app to AppStore.
Currently lidgren not working with IPv6 networks.

I tried to apply solutin from this pull request to my code:

Adopting it to Unity3d as followed here:

But it all didnt work for me - after using this approach my app was unable to establish connections either in IPv4 or IPv6 networks.

Maybe anyone can help me with this or having any usefull info about how to adopt lidgren internals to work in IPv4 or IPv6 in Unity3d?

Best regards, Alexander Bogomoletz.

Jimmy Nyström

unread,
Nov 18, 2016, 10:41:15 AM11/18/16
to lidgren-network-gen3
Hello Alexander,

Did you solve this? We're having the same issue and didn't find any good solution. We've (apparently) fixed the issue on Windows and Android connections for IPv6 but apple still rejects our builds.

Would be thankful for any advice at all!

Александр Богомолец

unread,
Nov 30, 2016, 2:57:42 AM11/30/16
to lidgren-network-gen3
Hello Jimmy.

Generally i resolved this rejecting lidgren usage in such networks (using https through UnityWebRequest and ASP.NET proxy server instances instead)
Lidgren source code can be ajusted for understanding IPv6 adresses manually (currently it just rejects them, this behaviour is hardcoded).
But while digging it up i found out, that the problem is not exactly in ligren, but in System.Net.Dns class. It was unable to resolve any ip address at all in Apple IPv6 test infrastructure i.e. Dns.GetHostEntry("https://www.google.com/") just failed.
Also i failed to manually establish TCP connections using hardcoded IPv4/IPv6 adresses, so i desided to drop any further attempts and implemented a solution, that was definetly working.

So i dont have any adequate answer about how to actually workaround this using lidgren and unity.

Best regards, Alexander Bogomoletz.

пятница, 18 ноября 2016 г., 18:41:15 UTC+3 пользователь Jimmy Nyström написал:

Александр Богомолец

unread,
Nov 30, 2016, 3:28:05 AM11/30/16
to lidgren-network-gen3
Also take a look over here:
This post notes, that everything works fine using Mono scripting backend for iOS, but not using IL2CPP (whitch is the only option for AppStore) 

среда, 30 ноября 2016 г., 10:57:42 UTC+3 пользователь Александр Богомолец написал:

RevenantX RevenantX

unread,
Feb 6, 2017, 9:20:58 AM2/6/17
to lidgren-network-gen3
Try https://github.com/RevenantX/LiteNetLib 
It has support of IPv6 and libary usage is very similar to lidgren.

пятница, 3 июня 2016 г., 19:34:58 UTC+3 пользователь Александр Богомолец написал:
Reply all
Reply to author
Forward
0 new messages