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

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
Isaid
Prole
Posts: 4
Joined: Sun Mar 17, 2019 2:33 am

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

Post 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 :(
User avatar
ivan
Party member
Posts: 1915
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

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

Post by ivan »

Is your Android device connected to the internet using Wifi?
You cannot connect directly to a device behind a home router.
Isaid
Prole
Posts: 4
Joined: Sun Mar 17, 2019 2:33 am

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

Post by Isaid »

1.- YES
2.-what do you mean?
User avatar
ivan
Party member
Posts: 1915
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

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

Post 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.
User avatar
keharriso
Party member
Posts: 109
Joined: Fri Nov 16, 2012 9:34 pm

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

Post 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.
Last edited by keharriso on Mon Mar 25, 2019 6:18 pm, edited 1 time in total.
LÖVE-Nuklear - a lightweight immediate mode GUI for LÖVE games
User avatar
ivan
Party member
Posts: 1915
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

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

Post 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.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 7 guests