If you have a Mac or Windows laptop, since they configure mDNS by default, you could say <my-machine>.local. The client will do a mDNS query and get your IPv4 or IPv6 address and connect.
That was the whole point of mDNS.
This will work even on a pure ipv6 network (with no hosts having ipv4 addresses).
I haven’t used Linux in over 10 years on a laptop, but even back then this was very well supported there as well. `ssh foobar.local` just worked, for example.
I have a completely default single router setup at home. I know .50 is my desktop and .1 is my router. How do I reach that via mDNS instead? Pretty sure this is broken.