Alternative for needed feature

I have a question about an alternative solution to a needed feature:

I have a feature, that I have already posted about (access to the IP address, network info), which I will need in order for my App to be ready to be submitted to the app store.

My question is if I write the necessary Java, and Objective C
code (for lua) to provide this access can the Corona Development team compile it into a build for me to use?

It will most likely just be a simple function that returns a table with the current network info like device ip address.

This could be a temporary fix until the Corona Team has time to implement full IP/Network access.
[import]uid: 106158 topic_id: 24134 reply_id: 324134[/import]

I’m not part of Ansca, but I don’t think they would do anything like that. I think your best bet is looking into AutoLan by M.Y. Developers. It’s like $10 and I believe it can provide you with the IP of the device.

You can check it out here: http://www.mydevelopersgames.com/AutoLAN/index.html [import]uid: 56820 topic_id: 24134 reply_id: 97412[/import]

Will your AutoLan solution work on a private lan without an internet connection?
Our “remote” app uses udp to commincate with our own audio hardware but does not communicate with other apps.

Our app needs to discover the ip address of the device it is installed on.
[import]uid: 106158 topic_id: 24134 reply_id: 97970[/import]

@anderoth,
Thanks for the referral! Hope you are enjoying it.

@pbligh,
Will your AutoLan solution work on a private lan without an internet connection?
Yes. It will automatically discover AutoLAN instances on both device and simulator. You can then send whatever packets you wish using an intuitive event based framework.


Our “remote” app uses udp to commincate with our own audio hardware but does not communicate with other apps.
Are you just trying to send UDP packets over wifi? you can do that with Lua sockets.

Can you please tell us more about what you are trying to do? We can then make a recommendation for you.

Thanks,
M.Y. Developers
[import]uid: 55057 topic_id: 24134 reply_id: 98166[/import]

We have a remote control application made with Corona. It communicates with our amplifiers on the same network. This network may have no internet connection. The only thing connected to that network could be an audio device and a wireless access point for our Corona Tablet App to connect to.

We are using UDP (lua sockets) with our own binary protocol to communicate with our own audio devices. Part of our protocol requires us to send our ip address on start up and whenever it is changed.

Corona does not provide a way to get access to the IP address
within your own application without some sort of external dependency, like a web server or some other device.

Minimally, We are looking for a reliable way to get access to our device’s IP address.
Thank you

[import]uid: 106158 topic_id: 24134 reply_id: 98259[/import]

Hello,

No need to purchase AutoLAN for your case, it is designed to simplify networking between devices. We ran into your same problem before actually, the only way to get the IP address was to ping google or something. Otherwise you will just end up getting 127.0.0.1 or 0.0.0.0 or whatever the localhost is.


Part of our protocol requires us to send our ip address on start up and whenever it is changed.

Not sure why you would need to do this. If you are receiving a UDP packet from somewhere you should be able to figure out what IP address it came from. Are you not able to do this on your audio device?

Regards,
M.Y. Developers [import]uid: 55057 topic_id: 24134 reply_id: 98316[/import]

I believe you are referring to getting the ip address from the packet itself?

There are a few reasons why we would not want to get the ip address from the packet itself.

IP addresses can change (sometimes very frequently). Some network admins have the ip address leases expire after a few minutes.

When using UDP protocol the packets are not guaranteed to be received in the order they are sent out. This is actually a more obvious problem with wireless networks.

So I could be communicating with a client and then suddenly its ip address changes. If I am getting the IP from the packet it could be that I received an old packet last which has the previous ip address which is now incorrect.

Also, network devices between you and the client can change/mask the source ip. For example(if you are behind a router and you visit “what is my ip?”, from the browser on your computer, you get the ip of the router and not your computers ip address.)

[import]uid: 106158 topic_id: 24134 reply_id: 98328[/import]