I’m sorry, you’ve lost me.
You say you can connect locally and you can connect through duckdns.
That’s it, that’s the whole shebang, what else is there ?
Edit: looking at what you have posted you seem to have a superfluous “.” remove it.
Should be : -