Page 1 of 1

Why Lua2d netWorking Examples doesn't working on my Android mobile

Posted: Mon Mar 18, 2019 7:13 pm
by Isaid
I heard LOVE are only for Windows, Linux and macOS, but some scripts work in an android. So I don't know what are exactly the Target Platforms of LOVE

Is there any possible way to make online games in Android using LOVE?

Android games are the future :(

Re: Why Lua2d netWorking Examples doesn't working in my Android mobile

Posted: Mon Mar 18, 2019 7:21 pm
by ivan
Is your Android device connected to the internet using Wifi?
You cannot connect directly to a device behind a home router.

Re: Why Lua2d netWorking Examples doesn't working on my Android mobile

Posted: Mon Mar 18, 2019 7:37 pm
by Isaid
1.- YES
2.-what do you mean?

Re: Why Lua2d netWorking Examples doesn't working on my Android mobile

Posted: Mon Mar 18, 2019 8:21 pm
by ivan
I mean that your home router translates the ports so that multiple devices can share the same external IPs. Furthermore, routers block incoming ports to protect your devices.
So devices on the same Wifi network cannot connect to each other directly.

Re: Why Lua2d netWorking Examples doesn't working on my Android mobile

Posted: Mon Mar 18, 2019 11:27 pm
by keharriso
ivan wrote: Mon Mar 18, 2019 8:21 pm I mean that your home router translates the ports so that multiple devices can share the same external IPs. Furthermore, routers block incoming ports to protect your devices.
So devices on the same Wifi network cannot connect to each other directly.
I'm no expert here, but I think what you are talking about is Network address translation, in which case it's actually the opposite of your conclusion. Devices on the same wifi can connect to each other but devices on different wifi networks can't (without port forwarding).

EDIT: Yeah, it's not "the opposite," my bad.

Re: Why Lua2d netWorking Examples doesn't working on my Android mobile

Posted: Sun Mar 24, 2019 2:49 pm
by ivan
You might be correct, I have used a wifi router to connect between computers and it does work - it depends on the router and you may have to disable the internet connection. It's not really the "opposite" of what I was saying, which is that you cannot connect directly to machines that are behind a NAT device.