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\" &