I have configured ddclient on my raspberry pi to use the dynamic dns service from easydns.com. However, I noticed that the ddclient is using the local LAN IP instead of picking up the external Internet IP, hence I am unable to connect to the device over the Internet.
So, you'll have to either work it out for whatever you use for a router, which might or might not be supported, or use=web to get the IP address for an external address.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have configured ddclient on my raspberry pi to use the dynamic dns service from easydns.com. However, I noticed that the ddclient is using the local LAN IP instead of picking up the external Internet IP, hence I am unable to connect to the device over the Internet.
Please advise. Thank You.
pi@raspberrypi:~ $ sudo ddclient -daemon=0 -debug -verbose -noquiet -force
=== opt ====
opt{cache} : <undefined>
opt{cmd} : <undefined>
opt{cmd-skip} : <undefined>
opt{daemon} : 0
opt{debug} : 1
opt{exec} : <undefined>
opt{facility} : <undefined>
opt{file} : <undefined>
opt{force} : 1
opt{foreground} : <undefined>
opt{fw} : <undefined>
opt{fw-login} : <undefined>
opt{fw-password} : <undefined>
opt{fw-skip} : <undefined>
opt{geturl} : <undefined>
opt{help} : <undefined>
opt{host} : <undefined>
opt{if} : <undefined>
opt{if-skip} : <undefined>
opt{ip} : <undefined>
opt{login} : <undefined>
opt{mail} : <undefined>
opt{mail-failure} : <undefined>
opt{max-interval} : 2592000
opt{min-error-interval} : 300
opt{min-interval} : 30
opt{options} : <undefined>
opt{password} : <undefined>
opt{pid} : <undefined>
opt{postscript} : <undefined>
opt{priority} : <undefined>
opt{protocol} : <undefined>
opt{proxy} : <undefined>
opt{query} : <undefined>
opt{quiet} : 0
opt{retry} : <undefined>
opt{server} : <undefined>
opt{ssl} : <undefined>
opt{syslog} : <undefined>
opt{test} : <undefined>
opt{timeout} : <undefined>
opt{use} : <undefined>
opt{verbose} : 1
opt{web} : <undefined>
opt{web-skip} : <undefined>
=== globals ====
globals{daemon} : 60
globals{debug} : 1
globals{force} : 1
globals{if} : eth0
globals{login} : naluri2003
globals{password} : 9DD02FBDA26D5A2C
globals{protocol} : easydns
globals{quiet} : 0
globals{server} : members.easydns.com
globals{use} : if
globals{verbose} : 1
=== config ====
config{scspk-pi.managepi.net}{atime} : 0
config{scspk-pi.managepi.net}{backupmx} : 0
config{scspk-pi.managepi.net}{cacheable} : ARRAY(0x1e95800)
config{scspk-pi.managepi.net}{cmd} : <undefined>
config{scspk-pi.managepi.net}{cmd-skip} :
config{scspk-pi.managepi.net}{fw} :
config{scspk-pi.managepi.net}{fw-login} : <undefined>
config{scspk-pi.managepi.net}{fw-password} :
config{scspk-pi.managepi.net}{fw-skip} :
config{scspk-pi.managepi.net}{host} : scspk-pi.managepi.net
config{scspk-pi.managepi.net}{if} : eth0
config{scspk-pi.managepi.net}{if-skip} :
config{scspk-pi.managepi.net}{ip} : <undefined>
config{scspk-pi.managepi.net}{login} : naluri2003
config{scspk-pi.managepi.net}{max-interval} : 2592000
config{scspk-pi.managepi.net}{min-error-interval} : 300
config{scspk-pi.managepi.net}{min-interval} : 300
config{scspk-pi.managepi.net}{mtime} : 0
config{scspk-pi.managepi.net}{mx} :
config{scspk-pi.managepi.net}{password} : 9DD02FBDA26D5A2C
config{scspk-pi.managepi.net}{protocol} : easydns
config{scspk-pi.managepi.net}{server} : members.easydns.com
config{scspk-pi.managepi.net}{status} :
config{scspk-pi.managepi.net}{use} : if
config{scspk-pi.managepi.net}{warned-min-error-interval} : 0
config{scspk-pi.managepi.net}{warned-min-interval} : 0
config{scspk-pi.managepi.net}{web} : dyndns
config{scspk-pi.managepi.net}{web-skip} :
config{scspk-pi.managepi.net}{wildcard} : 0
config{scspk-pi.managepi.net}{wtime} : 30
=== cache ====
cache{scspk-pi.managepi.net}{atime} : 0
cache{scspk-pi.managepi.net}{backupmx} : 0
cache{scspk-pi.managepi.net}{host} : scspk-pi.managepi.net
cache{scspk-pi.managepi.net}{mtime} : 0
cache{scspk-pi.managepi.net}{mx} :
cache{scspk-pi.managepi.net}{status} : TOOSOON
cache{scspk-pi.managepi.net}{warned-min-error-interval} : 1546432366
cache{scspk-pi.managepi.net}{warned-min-interval} : 0
cache{scspk-pi.managepi.net}{wildcard} : 0
cache{scspk-pi.managepi.net}{wtime} : 30
DEBUG: get_ip: using if, eth0 reports 192.168.0.222
INFO: forcing update of scspk-pi.managepi.net.
DEBUG:
DEBUG: nic_easydns_update -------------------
INFO: setting IP address to 192.168.0.222 for scspk-pi.managepi.net
UPDATE: updating scspk-pi.managepi.net
DEBUG: proxy =
DEBUG: url = http://members.easydns.com/dyn/dyndns.php?hostname=scspk-pi.managepi.net&myip=192.168.0.222&wildcard=OFF
DEBUG: server = members.easydns.com
CONNECT: members.easydns.com
CONNECTED: using HTTP
SENDING: GET /dyn/dyndns.php?hostname=scspk-pi.managepi.net&myip=192.168.0.222&wildcard=OFF HTTP/1.0
SENDING: Host: members.easydns.com
SENDING: Authorization: Basic bmFsdXJpMjAwMzo5REQwMkZCREEyNkQ1QTJD
SENDING: User-Agent: ddclient/3.8.2
SENDING: Connection: close
SENDING:
RECEIVE: HTTP/1.1 200 OK
RECEIVE: Date: Wed, 02 Jan 2019 12:36:16 GMT
RECEIVE: Server: Apache
RECEIVE: X-Powered-By: PHP/5.4.45-0+deb7u5
RECEIVE: Set-Cookie: easydns_language=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/
RECEIVE: Vary: Accept-Encoding
RECEIVE: Content-Length: 55
RECEIVE: Connection: close
RECEIVE: Content-Type: text/html
RECEIVE:
RECEIVE: NOERROR
RECEIVE: scspk-pi.managepi.net updated to 192.168.0.222
SUCCESS: updating scspk-pi.managepi.net: NOERROR: IP address set to 192.168.0.222</undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined></undefined>
In the default ddclient.conf:
So, you'll have to either work it out for whatever you use for a router, which might or might not be supported, or use=web to get the IP address for an external address.