Autolan Local Multiplayer issue

I know this project has been abandoned, but I’m hoping someone has gotten this to work and could give me some help.

The problem is, i’m not sure what the problem is. I’m using the MultiPong sample that included in the AutoLan master from github, and it works perfectly if I use it with 2 simulators. However if I try any combination that includes an actual device, the 2 apps do not see each other. EG: I host on my iPhone and the simulator doesn’t find the room, and vice versa. 

I know it’s a long shot, but hopefully someone might know what is wrong. The app i’m working on is multiplayer and I really want to include a local network option (Boardgame style app).

*Edit*

Should also note that there are no errors on the console of the device or simulator.

I also tried testing 2 devices tethered together on their own hotspot network and it still does not work.

spowell83, something has happened recently and AutoLan seems to only be working on the simulator and not on the actual device.

Yeah, it’s a little frustrating. Any idea what might be causing the issue? Or how to fix it? Autolan is the only real solution to local multiplayer without using the internet.

I have been working on it all day and seems like I have narrowed it down to lua sockets not broadcasting as they should. No idea why is not happening but I have run a network sniffer and can see the packets being broadcast when I run it on the simulator but not when I am running it on the device. I have also filed a bug with corona to see if they can shed some light on whats going on with lua socket library. Here is some code to easily reproduce the issue, the code will broadcast udp packet on port 8080 fine on the simulator but not on the device  for what ever reason.

local socket = require "socket" local broadcast local UDPBroadcaster = socket.udp() UDPBroadcaster:setoption("broadcast", true) UDPBroadcaster:setsockname("\*", 0) UDPBroadcaster:settimeout(0) function UDPBroadcast() UDPBroadcaster:sendto("SOME MESSAGE OR DATA", "255.255.255.255", 8080) print("broadcast") end broadcast = timer.performWithDelay(1000,UDPBroadcast,-1)

I’m really hoping this can be fixed.

I am too, my app has been Live for close to a year now and this has a big impact on a major part of the app/game. I really hope its something that can be addressed. BTW the case number for the bug is 34063

So no response or anything from a Corona employee about this LUA sockets issue?

spowell83, something has happened recently and AutoLan seems to only be working on the simulator and not on the actual device.

Yeah, it’s a little frustrating. Any idea what might be causing the issue? Or how to fix it? Autolan is the only real solution to local multiplayer without using the internet.

I have been working on it all day and seems like I have narrowed it down to lua sockets not broadcasting as they should. No idea why is not happening but I have run a network sniffer and can see the packets being broadcast when I run it on the simulator but not when I am running it on the device. I have also filed a bug with corona to see if they can shed some light on whats going on with lua socket library. Here is some code to easily reproduce the issue, the code will broadcast udp packet on port 8080 fine on the simulator but not on the device  for what ever reason.

local socket = require "socket" local broadcast local UDPBroadcaster = socket.udp() UDPBroadcaster:setoption("broadcast", true) UDPBroadcaster:setsockname("\*", 0) UDPBroadcaster:settimeout(0) function UDPBroadcast() UDPBroadcaster:sendto("SOME MESSAGE OR DATA", "255.255.255.255", 8080) print("broadcast") end broadcast = timer.performWithDelay(1000,UDPBroadcast,-1)

I’m really hoping this can be fixed.

I am too, my app has been Live for close to a year now and this has a big impact on a major part of the app/game. I really hope its something that can be addressed. BTW the case number for the bug is 34063

So no response or anything from a Corona employee about this LUA sockets issue?