Skip to content

Commit d0f4353

Browse files
committed
Return back Any instead of Loopback casue I don't know usage of it
Just to not break
1 parent 6e36192 commit d0f4353

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/webdriver/Internal/PortUtilities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static int FindFreePort()
3535
{
3636
using var socket = new Socket(AddressFamily.InterNetworkV6, SocketType.Stream, ProtocolType.Tcp);
3737
socket.DualMode = true;
38-
socket.Bind(new IPEndPoint(IPAddress.IPv6Loopback, 0));
38+
socket.Bind(new IPEndPoint(IPAddress.IPv6Any, 0));
3939
return (socket.LocalEndPoint as IPEndPoint)!.Port;
4040

4141
}

0 commit comments

Comments
 (0)