-->
Page 1 of 1

UDP Server not working

PostPosted: Mon Jan 12, 2015 7:28 am
by cocojackr42
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

Re: UDP Server not working

PostPosted: Sun Jan 25, 2015 7:16 pm
by M0ebius
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...