@Revaerie,
Thank you for clarifying things! Your help is much appreciated. How are things going with your game?
@Gary Duke,
No problem. Yes it is just one php script that you can run on your own server. In fact, we encourage this for the reasons Revaerie mentioned. Please let us know if you have any other concerns. There are functions to redirect AutoLAN to use your own matchmaker server. You can do it like this:
server:setMatchmakerURL("www.mywebsite.com", 54613) --54613 is the port on the php script.
or alternativley you can just look for the code snippet
socket.dns.toip("rijl-al-awwa.dreamhost.com")
and change it to your own URL
@Satheesh,
Glad you got things working! As long as you were able to get packets flowing you are in good shape.
>Provided I know the ip address and port of the other device beforehand, is it possible to connect the two without the Matchmaker server?
This will only work if the two devices are not behind a NAT (router.) You cannot know the port for certain beforehand because the router will assign that on its own. Most routers will try to preserve the ports but might not be able to if there are two applications on different machines trying to use the same port for instance. And then there is the NAT that just randomly assigns ports. This is why we need a a matchmaker server. There is a good article that explains all this if you are curious:
http://www.brynosaurus.com/pub/net/p2pnat/
This was one of the sources we used to get familiar with everything.
Thanks Everyone,
M.Y. Developers [import]uid: 55057 topic_id: 19917 reply_id: 90161[/import]