Desktop app detect local network?

Can the desktop app access my share remotely while I’m away, but locally while I’m at home?

i.e a Zeroconfig url on my home network, but fall back to a dynamic dns link while roaming?

Why dont you use dnsmasq?