Use Local PC for C2DM Server

Bill Norris

Active Member
Licensed User
Longtime User
I've just begun to dig into C2DM. When complete, my app will be running on approx 20 tablets and the database will need to be updated peridocally then sent to the tablets. My basic understanding is that it works something like this:

1: My 3rd party application (the one I am using to work on the database, in my case will be a VB.net application) will send a message to C2DM that my devices need to update their database

2: C2DM sends a message to my devices telling them they need to contact the server to get an updated database.

3: Devices acknowledge the message, then connect to the server to get that update

Questions: Can I use a local, in-house PC as the server? If so, where do I go to learn about how to do that?

Thanks -- I hope my head doesn't explode in the meantime.
 

wl

Well-Known Member
Licensed User
Longtime User
Hi,

Your local server should be able to contact Google's C2DM server, but that won't be a problem.

Apart from that your Android devices should be able to contact your local server, this can be
1. when your Android devices are within the same (local) network as your server
2. you make your server accessible from the internet. This implies configuring your modem/router so that an incomming connection (eg: port 80 = http) maps to your local server within your network (check with your provider whether incomming connections are allowed and also which ports: there are some providers blocking incomming connections on well-know ports such as 25 (smtp), 80 (http), 443 (https), ...).
If you have a dynamic IP you will also need a Dynamic DNS services (such as dyndns, no-ip, rollernet, ...)
 
Upvote 0
Top