Skip to content

Commit

Permalink
free_port checks if port is available on all int.
Browse files Browse the repository at this point in the history
free_port checks if port is available on all interfaces as phatnomjs (at least 1.9.8) always binds to 0.0.0.0

Signed-off-by: AutomatedTester <dburns@mozilla.com>
  • Loading branch information
crspl authored and AutomatedTester committed Jul 14, 2015
1 parent 1c90b99 commit e6e7536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def free_port():
Determines a free port using sockets.
"""
free_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
free_socket.bind(('127.0.0.1', 0))
free_socket.bind(('0.0.0.0', 0))
free_socket.listen(5)
port = free_socket.getsockname()[1]
free_socket.close()
Expand Down

0 comments on commit e6e7536

Please sign in to comment.