Hacker News new | ask | show | jobs
by tenebrisalietum 2168 days ago
So how do I access a unix socket in my browser? Be nice if "unix://file/path.html" worked.
1 comments

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.