Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to develop the app which run on a mobile phone. It acts like a server which is able to be accessed from the PC app which will request for the mobile info such as the GPS coordination. The mobile phone running this app will be response automatically with out human action.

The point is the mobile phone could be in the GSM/CDMA or Wifi network which its ip address is dynamically assigned.

Do you guys has any idea how to connect to the server on the public network with dynamically ip assignment like this?

P.S. The mobile phone can connect to the PC app, since I can set up a dns service stuff on the PC side. Just let you guys know.


share|improve this question
up vote 1 down vote accepted

Trying to pull from a device on a mobile network is going to a pain. It's very likely to be on a NATed ip which means no direct access, and there's no easy way around that.

You'd be a lot better off changing the software on the mobile device to some form of a daemon that PUSHS the data to a centralised server rather than attempting to get the server to pull from the phone.

Of course, there's other hacks you could use like implementing something like SSH tunnels. In this case, the mobile device would create an SSH connection to a centralised server which then allows connection back to the mobile device on a certain port. However, managing this with multiple devices would become a nightmare.

share|improve this answer

One solution would be registering a host name for the mobile phone on a service like dyndns and letting the mobile phone update the dynamic IP whenever it changes.

If it's GSM you may be able to acces it, but if it's on a WiFi surely not without any port redirection ... difficult.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.