logoalt Hacker News

simpleguitar • today at 6:47 PM • 2 replies • view on HN

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).


Replies

mahboi • today at 7:04 PM

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.

  ~ $ arp -a
  ? (192.168.50.1) at e8:9c:25:52:83:10 on en0 ifscope [ethernet]
  ? (192.168.50.9) at 64:9a:63:eb:ed:f1 on en0 ifscope [ethernet]
  ? (192.168.50.50) at 14:98:77:70:17:a7 on en0 ifscope [ethernet]
➕ show 2 replies
lxgr • today at 7:17 PM

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.