Taylor C. White
Taylor C. White

Reputation: 946

Automatically have router send out IP Address

This is an interesting problem, and I'm not quite sure the right tags / context in which to ask.

Here is the core question: How can I automatically (& remotely) find out each time a routers public IP Address changes, and to what.

Background: I have security cameras wired up in my house. I am able to remotely monitor the cameras from my cellphone / online. To do this I need the router's IP address. The router assigns a static private IP address to the Cameras such that all requests to port 8000 automatically get forwarded to the DVR / computer wired to the cameras.

So my question becomes, is it possible to run a daemon on the router that will automatically send its public email address out?

I want to be able to constantly have the correct information on my phone app such that I can monitor the house at all times without having to return home to monitor it.

Upvotes: 0

Views: 1698

Answers (2)

Ben Glasser
Ben Glasser

Reputation: 3365

The easiest way to accomplish this would be to use a Dynamic DNS service like DynDns

Most commercial off the shelf routers support dyndns apis directly. All you have to do is provide your credentials in your routers configs and it will automagically update the IP address for your specific domain. Obviously this means you will have to acquire a domain name, but those are relatively cheap.

This type of set up will allow you to rely only on a domain name without having to worry about the public IP address of your home network.

Upvotes: 2

andreas-hofmann
andreas-hofmann

Reputation: 2518

Why not use a dynamic DNS service? You will get a public hostname, which must be updated from your router to point to your current IP. There are several free providers, e.g. afraid.org, which allows updating your public DNS record from various platforms as simple as regularly pointing wget to a specific URL.

Upvotes: 2

Related Questions