diff --git a/framework/fit/python/fitframework/utils/tools.py b/framework/fit/python/fitframework/utils/tools.py index f17f0e72..f87b26fb 100644 --- a/framework/fit/python/fitframework/utils/tools.py +++ b/framework/fit/python/fitframework/utils/tools.py @@ -53,7 +53,7 @@ def to_bool(value: Union[str, int, bool]): def get_free_tcp_port() -> int: with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: - s.bind(('', 0)) + s.bind((_LOCAL_HOST, 0)) return s.getsockname()[1]