From cc6ac89cab1bf55cd6a95c3ad573e66d38df894d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Paulev=C3=A9?= Date: Sat, 9 Sep 2017 00:11:46 +0200 Subject: [PATCH] macosx: do not use localhost.. (issue #3) --- run-mtgo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run-mtgo b/run-mtgo index ba79494..c1d3ada 100755 --- a/run-mtgo +++ b/run-mtgo @@ -130,7 +130,8 @@ opts="${opts} -v ${data}:/home/wine/.wine/drive_c/users/" opts="${opts} -v /tmp/.X11-unix:/tmp/.X11-unix:rw" if [[ ${OSTYPE} == darwin* ]]; then - ip=127.0.0.1 + iface=en0 + ip=$(ifconfig $iface | grep inet | awk '$1=="inet" {print $2}') run open -a XQuartz run xhost + ${ip} run socat TCP4-LISTEN:6000,bind=$ip,range=$ip/32,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\" &