Controlling the IrrigationCaddy from the Internet, either from your smartphone device, or from any computing device with a standard web browser is simple.
The best known method to do this, is by using “Port Forwarding“. Port Forwarding is the ability to map an external port on your router, to an internal IP address + port combination.
External IP Address
Most residential users have a DSL/Cable Router. I own a WRT610N router made by Linksys. I will use my router’s interface to guide you through, however you will have to adapt the instructions to your own router’s interface. The router is your gateway to the internet. All traffic coming into or going out of your network has to go through your router. Now the router has an IP address assigned to it by your ISP (Internet Service Provider).
So that is your external IP address. This is the address you have to use when you are on the Internet in order to access your network. By default your router will reject pretty much anything trying to get into your network using this IP address. So let’s say your External IP is:
if you go to your browser and type:
you will probably get an error message, and nothing will display. However what you would like to do is to type something like:
and in return get the IrrigationCaddy user interface. The 8095 number after the colon is the port number.
Internal IP Address
When you install the IrrigationCaddy on your network, the IrrigationCaddy will have its own IP address, which is “internal” to your network. This IP Address is only valid within your own home network, and you cannot reach it from the Internet; unless you use Port Forwarding that is.
You will notice that above the Internal IP Address, on the Settings page, the “HTTP Listen Port” is also listed. This is the port number that the IrrigationCaddy is listening on for HTTP connections. So when you are sitting at your computer, and type the following on your web browser:
the IrrigationCaddy’s user interface shows up. Since 80 is a standard port number, you don’t have to explicitly write it on the address, but I am listing it here for illustration purposes.
Now the fun begins.
The idea is to map the external IP address, and some port of your choosing on the Router, to the Internal IP address and the port number that the caddy is listening on. So that when you are away from home, and just got notified that your city just applied watering restrictions, and you would like to change your watering schedule, you can do it from your phone, simply and quickly. This is done by configuring your router to do Port Forwarding.
Pretty much every modern DSL/Cable router supports this feature. They all have different user interfaces, but the concepts are the same, and you should be able to adapt the methods explained here, to your own router.
On my router, the Port Forwarding feature is under the “Applications & Gaming” tab.
In the picture shown above, you can see that the settings required to setup port forwarding are pretty self explanatory. There is an “External Port”, an “Internal Port”, a “Protocol” (TCP or UDP. You need at least TCP ), and the “To IP Address” ( this is your internal IP Address ).
In the example shown we are telling the router that when someone tries to access our router using the “external” IP address, and it is going to port number 8093, that the call should be routed to the internal IP address “192.168.0.120″ on port 80. Now it just happens that that IP address is the IrrigationCaddy’s IP address, and that 80 is also the port number where the IrrigationCaddy is listening for connections.
The result is that when you open your web browser and while on the internet you type:
the IrrigationCaddy will respond to this call, and answer by sending back the IrrigationCaddy’s user interface HTML code. If the call was made from a web browser somewhere on the internet, the browser will display the familiar IrrigationCaddy web page.
NOTE: Make sure that when you setup Port Forwarding, you also enable “Authentication” on the IrrigationCaddy. When Port Forwarding is enabled, anyone on the Internet, which knows your External IP address, is now able to do what you can do on the browser. So you want to make sure that if someone is able to access the IrrigationCaddy through the internet, that they are not able to login and change your settings. You don’t want people you don’t know playing with your water bill; so be careful.