I threw away the old ones from my dropbox the latest one should still work
Edit: Ed congrats on golf tournament. I don’t have a IPv6 network so can not test this, but it “should” work if you have a IPv6 network
** MARKED THIS POST AS SOLVED TO GET LINK TO REPOSITORY AT TOP **
** NOT TO GIVE SELF CREDIT **
** KUDOS TO ALL WHO HELPED AND WORKED ON THIS **
OK. I’ve played around with this and made some further improvements.
Now, the library is backward and forward compatible. It (should) work for socket2/socket3 and all versions of Corona.
I’ve tested this on several devices and it all looks solid.
You can find the updated libraries and sample pong game here (with credits and thanks):
http://github.com/roaminggamer/AutoLan-IPv6/
Note: While you should not need it, if you are running 2016.2883 or later, and if you want to force the modules to use IPV4, simply locate this variable in server.lua and client.lua and set it to true:
local forceIPV4 = true
Nice job!
That example uses graphics 1.0 so I downloaded your pong demo and made some changes to make it work with graphics 2.0 to make the demo last longer.
Edit: I remember you corona geek talk about your remote idea for Apple TV. Hope it works out. I have been thinking about how it could be done with the autolan, but it is easy to filter search by device type (like Apple TV). Plus I their is some code to send files over wifi.
Thanks! I’ve updated the ‘pong demo’ on the git.
I found an error with this code.
If you set forceIPV4 = false then the following line returns nil in the peerIP variable
peerIP, peerPort = s:getsockname(), 54613 <<-- this line always returns peerIP == nil.
I am running on the corona simulator and it crashes the simulator. I have a nice new Router (IPV4 and IPV6 support ) and new gaming laptop ( i7 ).
I turned this off because i could not get my phone and PC connect together and was trying to see if IPV4 was the cause.
As i am no socket / network dude then i have no clue on how to fix this correctly.
function server:startInternet() if(matchmakerTCPclient == nil) then server:start() --establish a TCP connection with the matchmaker server if(peerIP == nil) then local s = socketUDP() s:setpeername( "google.com", 54613 ) peerIP, peerPort = s:getsockname(), 54613 end matchmakerTCPclient = socketTCP() matchmakerTCPclient:settimeout(0) --this is the only blocking operation matchmakerTCPclient:connect(peerIP, peerPort) --bind on any availible port and localserver ip address. timers.connectMatchmaker = timer.performWithDelay(500, server.startInternet,-1) end
Thanks
Larry
Hi Community,
Is that variable still present in the code: forceIPV4
I can’t seem to find it in the latest version. I do see several references to “ipv6” and “ipv6Test” - I assume something was updated since the original post?
I’m trying having trouble getting consistent connectivity and was hoping ipv4 vs. ipv6 might be part of the issue.
anyone?
I will take a look at this when I can get to my laptop.
Can you if check my version works? Just curious
To check to see if you have ipv6
Hi Community,
Is that variable still present in the code: forceIPV4
I can’t seem to find it in the latest version. I do see several references to “ipv6” and “ipv6Test” - I assume something was updated since the original post?
I’m trying having trouble getting consistent connectivity and was hoping ipv4 vs. ipv6 might be part of the issue.
Hello,
many Thanks for this! I use it for my game. I see, that the line 576 is lost:
applicationName = params.applicationName or applicationName
but wenn I add this and cal
client:setOptions
the client can’t connect to server after three reconnects
Hello,
many Thanks for this! I use it for my game. I see, that the line 576 is lost:
applicationName = params.applicationName or applicationName
but wenn I add this and cal
client:setOptions
the client can’t connect to server after three reconnects