Unfortunately, there is no way for browser extensions to create Unix sockets,
Also, code signing would prevent anyone from modifying the binaries to change the IP address.
Also, code signing would prevent anyone from modifying the binaries to change the IP address.
(Trusted computing relies on some tamper-resistant core of the machine not being pwned when the rest of it is pwned.)