• sugar_in_your_tea
      link
      fedilink
      arrow-up
      2
      ·
      3 hours ago

      If I were implementing it, I’d just list all interfaces on the machine and see if there’s a service bound to it on the given port. There’s probably only one, but it’s technically undefined behavior I think.