Left here for archival purposes.

User avatar
By cocojackr42
#7072 I'm not quite sure if this is a bug, because I cant find any sample code. But this is the part of my code that starts an UDP Server:

Code: Select allsv=net.createServer(net.UDP)
sv:listen(4243,function(c)
      c:on("receive", function(c, pl) print(pl) end)
      end)


The UDP Server doesn't receive packages directly send to the IP nor broadcast/multicasts. However my Tablets (logged into the same hotspot) does indeed get the packages.

Does anyone can confirm this behavior, or did I do anything wrong at all?

*version 0.9.5 Build 20150105
User avatar
By M0ebius
#8210 Coded like this, the server works:
Code: Select allsu=net.createServer(net.UDP)
su:on("receive",function(su,payload)
         print(":"..payload)
end)
su:listen(8007)

I dont know why...