- Update preferences 'Security' tab - turn on 'Allow connection from network clients'
- Restart XQuartz and then check to see that it is listening on port 6000:
lsof -i :6000And run it so it will wait for connections and then pass them over to XQuartz.
brew install socat
socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"ip=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}') && echo "My IP is: $ip"xhost + ${ip}docker run --rm -it -e DISPLAY=${ip}:0 -v /tmp/.X11-unix:/tmp/.X11-unix --name firefox jess/firefox