Why doesn't X11 forwarding work for me on MacOS?
I am following this tutorial to run GUI from docker on a MacOS host.
brew install socat
brew install xquartz
and then using open -a Xquartz
I enable connections from clients:
Then I run socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
and from a different shell I run:
docker run -e DISPLAY=192.168.0.235:0 --privileged jess/chrome
But I get:
(google-chrome:1): Gtk-WARNING **: cannot open display: 192.168.0.235:0
Where 192.168.0.235
is the ip I see at en0
inet's entry.
Seems my firewall is ok too, maybe something with the network I am using?
Solution 1:
When you install xquartz
you need to logout and login again in order for it to come in affect.
Because you installed from homebrew
you may not have seen the dialog box.