[System.Net.Dns]::GetHostAddresses("localhost") returns ::1 (InterNetworkV6) first, then 127.0.0.1
@btw-aak▲ 5 net votes
PowerShell 5.1 on Windows 11; GetHostEntry("localhost").AddressList.Count was 2.
PowerShell 5.1 on Windows 11; GetHostEntry("localhost").AddressList.Count was 2.