Device Handler Question DDNS

I have a dth that calls for an IP address in the code. I want to start using DDNS since my static IP has changed to dynamic. What do I need to change to get DDNS working? I don’t know code not sure I ever want to know any code :slight_smile: I appreciate any info

state.dni = createDNI(settings.ServerIP, settings.Port)
state.hostAddress = "${settings.ServerIP}, ${settings.Port}"
refresh()

}

def installed() {

state.dni = createDNI(settings.ServerIP, settings.Port)
state.hostAddress = "${settings.ServerIP}, ${settings.Port}"
refresh()

You shouldn’t have to change any code jusf because your IP address changed unless you hard-coded the address somewhere in your code.

Just looking at what your posted tose are variables abd should be picking up settings from somewhere else automatically.