Hacker News new | ask | show | jobs
by mikelward 2459 days ago
On Linux, you can do something more robust that also supports IPv6 based on

    ip -o a sh up primary scope global