You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The System.Net.Sockets.TcpClient constructor fails to handle IPv4-Mapped Addresses correctly.
However the Connect function does.
I've tried this with Powershell 7.0.1 and .Net Core 3.1.4
Not working example:
PS C:\> $tcpConnection = [System.Net.Sockets.TcpClient]::new("::ffff:c163:9050", 443)
MethodInvocationException: Exception calling ".ctor" with "2" argument(s): "The requested address is not valid in its context. [::ffff:193.99.144.80]:443"
The text was updated successfully, but these errors were encountered:
agowa
changed the title
System.Net.Sockets.TcpClient constructor not handling IPv4 mappe addresses correctly
System.Net.Sockets.TcpClient constructor not handling IPv4-Mapped Addresses correctly
Jun 6, 2020
This repo is no longer actively monitored. Closing up old issues that have not had activity in while. If this is still an issue, please open a new issue in an appropriate repo listed in microsoft/dotnet#1275
The System.Net.Sockets.TcpClient constructor fails to handle IPv4-Mapped Addresses correctly.
However the Connect function does.
I've tried this with Powershell 7.0.1 and .Net Core 3.1.4
Not working example:
Working example:
Version information:
Related RFC: https://tools.ietf.org/html/rfc4038#section-4.2
The text was updated successfully, but these errors were encountered: