How to manage embedded device without static IP over internet in Ruby?

We have a device without a static IP, connected to the Internet, we want to send data to the device to control it, and need to periodically receive report data from the device by a server application in rails. What is a possible way to accomplish this with http and ruby?

Is there a way to do this without dyndns?

+3


source to share


2 answers


Its more a server / routing question. Has nothing to do with the ruby ​​on the rails. If your device supports dyndns, then your problem is solvable.

  • 1 Tell the device you are using dyndns
  • 2 Register the dyndns domain here, for example: http://dyn.com/dns/
  • 3 The device will always update the dyndns domain with the new ip
  • 4 Set the virtual host configuration for your server as follows:


<VirtualHost *:80>
  ServerName my.dyndns.domain
  DocumentRoot ...
  ...
</VirtualHost>

      

And now development should be available for others or for your rails use.

+1


source


You can have your device phone home when it appears. If you have a server on the public Internet, the device might know how to contact the server and register for updates.



If the device knows to poll for updates over HTTP or some other protocol, in many cases you can also use firewalls and NAT.

0


source







All Articles