We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b92eeb4 commit 398220fCopy full SHA for 398220f
py/selenium/webdriver/common/utils.py
@@ -40,7 +40,7 @@ def is_connectable(port):
40
try:
41
socket_ = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
42
socket_.settimeout(1)
43
- socket_.connect(("localhost", port))
+ socket_.connect(("127.0.0.1", port))
44
socket_.close()
45
return True
46
except socket.error:
@@ -60,7 +60,7 @@ def is_url_connectable(port):
60
import urllib2 as url_request
61
62
63
- res = url_request.urlopen("http://localhost:%s/status" % port)
+ res = url_request.urlopen("http://127.0.0.1:%s/status" % port)
64
if res.getcode() == 200:
65
66
else:
0 commit comments