diff --git a/beat/core/dock.py b/beat/core/dock.py
index 57e415f2325db1bb931cdb7f248ab0a8c4d54e52..3959a5be16897dfa6748883916efabae8fa9b790 100755
--- a/beat/core/dock.py
+++ b/beat/core/dock.py
@@ -109,7 +109,7 @@ class Host(object):
   def ip(self):
     '''The IP address of the docker host'''
     s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
-    s.connect(('8.8.8.8', 0))  # connecting to a UDP address doesn't send packets
+    s.connect(('8.8.8.8', 1))  # connecting to a UDP address doesn't send packets
     return s.getsockname()[0]