Re:Show HN: ip2unix – Turn IP sockets into Unix domain sockets
by tenebrisalietum on Wednesday July 08, 2020 @11:06AM
(#23770599)
So how do I access a unix socket in my browser? Be nice if "unix://file/path.html" worked.
[ Parent
| on HN ]
Re:Show HN: ip2unix – Turn IP sockets into Unix domain sockets
by aszlig on Wednesday July 08, 2020 @11:17AM
(#23770725)
You could map different ports to specific socket file names and use a dummy address, eg. like this:
ip2unix -r out,addr=127.1.1.1,path=foo-%p.sock firefox --new-instance
Whenever you then head over to something like http://127.1.1.1:9000/, the browser will try to connect to foo-9000.sock.