News for hackers. Stuff that matters.
Re:Show HN: Whosthere: A LAN discovery tool with a modern TU... by rvermeulen98 on Friday January 23, 2026 @10:30AM (#46733673)
Thanks for sharing! This is definitely something I will look into, I am all in favor to simplify the current implementation of finding the "default" OS network interface.
Re:Show HN: Whosthere: A LAN discovery tool with a modern TU... by contingencies on Friday January 23, 2026 @12:46PM (#46735386)
You'd better use the default route and not some random IP, particularly DNS IPs which people often meddle with.

  # IPv4 default route only
  uname
  Darwin$ route -n get 0.0.0.0 | grep interface | cut -d ':' -f2
  Linux$ route -nv  |grep ^0.0.0.0 | awk '{print $NF}'