diff --git a/itests/itest_utils.py b/itests/itest_utils.py
index <HASH>..<HASH> 100644
--- a/itests/itest_utils.py
+++ b/itests/itest_utils.py
@@ -2,6 +2,9 @@ import errno
 from functools import wraps
 import os
 import signal
+import sys
+import threading
+import re
 import time
 
 import requests
@@ -64,7 +67,14 @@ def get_marathon_connection_string():
         return 'localhost:8080'
     else:
         service_port = get_service_internal_port('marathon')
-        return get_compose_service('marathon').get_container().get_local_port(service_port)
+        local_port = get_compose_service('marathon').get_container().get_local_port(service_port)
+
+        # Check if we're at OSX. Use ip from DOCKER_HOST
+        if sys.platform == 'darwin':
+            m = re.match("(.*?)://(.*?):(\d+)", os.environ["DOCKER_HOST"])
+            local_port = "{}:{}".format(m.group(2), local_port.split(":")[1])
+
+        return local_port
 
 
 def get_service_internal_port(service_name):
Make it possible to run itests at osx with docker-machine