Tuesday, May 13, 2014

Using wget to update no-ip account

This was created because the WAN IP is connected to is dynamic and the ISP has NAT to it. To further explain it it was like this...


MYPC(192.168.0.x) --> router(10.x.x.x) --> ISP(120.x.x.x)

As you can see if the DUC app the no-ip provided checks our IP it will see the 120.x.x.x and not the 10.x.x.x so I created a script to extract the IP from the router. After getting the IP from the router the trick to send the acquired IP to update our account is...


wget.exe -Ooutput -E --http-user="your@mail.com" --http-password=p4ssw0rd "http://dynupdate.no-ip.com/nic/update?hostname=yourDNS.no-ip.org&myip=1.2.3.4"

This will update the IP of the account DNS and will put the result to a file named "output"
I colored the command Blue where it should not be changed and Green to change it according to your needs.

To see the documentation on how to update your DNS in no-ip.com kindly see http://www.noip.com/integrate/