I'm developing an app that will be sending data back to a server every minute. Along with this data it will also be possible that someone running a program from a computer can updata the data in the database. When they update the data in database I will need to send the new info to the device. I was planning on doing this via long polling, but as I understand it this would require me to setup a second connection to send the data off every minute.
How would you suggest opening a data connection between a device and a server so that data can be transfered both ways? Keep in mind that the IP address of the device might be unmapble due to GPRS and that the IP address might change via tower hopping.