$domain = 'possante24444' $token = '65d93cf7-0e46-46cb-8616-017bd24c9ea5' $last = '' while ($true) { try { $ip = (Invoke-RestMethod -Uri 'https://api.ipify.org' -TimeoutSec 8).Trim() if ($ip -and $ip -ne $last) { Invoke-RestMethod -Uri "https://www.duckdns.org/update?domains=$domain&token=$token&ip=$ip" -TimeoutSec 10 | Out-Null $last = $ip } } catch {} Start-Sleep -Seconds 60 }