We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 037b5fa commit 094b528Copy full SHA for 094b528
python/ray/_common/network_utils.py
@@ -69,17 +69,8 @@ def get_localhost_address() -> str:
69
"""Get localhost loopback address with IPv4/IPv6 support.
70
71
Returns:
72
- The localhost loopback IP address (matching node IP family or auto-detected).
+ The localhost loopback IP address.
73
"""
74
- import ray._private.worker
75
-
76
- if (
77
- ray._private.worker._global_node is not None
78
- and ray._private.worker._global_node.node_ip_address
79
- ):
80
- node_ip = ray._private.worker._global_node.node_ip_address
81
- return "::1" if is_ipv6_ip(node_ip) else "127.0.0.1"
82
83
# Try IPv4 first, then IPv6 localhost resolution
84
for family in [socket.AF_INET, socket.AF_INET6]:
85
try:
0 commit comments