First off i don't own this project, all rights and thanks goes to mydevelopergames.(https://github.com/mydevelopergames/AutoLAN) I just made a few small tweaks to this project and i have seen some old threads that want a working version of pong auto lan demo..
socket.dns.toip no longer works
local s = socket.udp()
s:setpeername( "126.96.36.199", 80 )
local peerIP, peerPort = s:getsockname()
and changed graphics in config.lua to 1.
That is about it.
NOTE: don't test on the same device ( don't try to test with two corona applications on the same device).
here is project