RESOLVED: http://github.com/roaminggamer/AutoLan-IPv6/
Issue
As of Corona 2016.2883, AutoLan broadcasts fail.
Cause
- Corona 2016.2883 and beyond use Lua Sockets 3.0rc1.
- AutoLan uses ‘Broadcast’ mechanism which is not supported (as coded) in this version or Lua Sockets.
What I’m Doing
I am debugging (very quiet) failure and ‘trying’ fix this on my own. However, this is an area that I am weak in.
So…
What I Need
I’ve searched the web and this site, as well as talked to some folks about this. I have leads, but am hoping someone has already fixed this (call me lazy).
In particular, I saw this thread: https://forums.coronalabs.com/topic/58394-got-old-auto-lan-to-work/
** UPDATE ** This part figured out, now on to converting broadcast to multicast.
However, the code link is dead AND ‘scottrules44’ (are you reading this?) didn’t specify the files or lines he changed so I’m currently hunting and pecking.
In short… If you have any idea how to get the old AutoLan auto-discovery feature working, please post back.
Otherwise, assuming I figure it out, I’ll post a solution later.
Thanks,
Ed
PS - Yes, I did notice the reference to ‘socket.dns.toip’ and that is where I’m starting, but it is used in four places and I’m unclear (as yet) on the best values to use in the new code to make this durable and safe. Reading…