Bug 3572 - TcpClient and TcpListener do not work with IPv6 addresses
Summary: TcpClient and TcpListener do not work with IPv6 addresses
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: System ()
Version: 2.10.x
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-02-21 20:47 UTC by Dr. John Wason
Modified: 2017-04-04 13:20 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Dr. John Wason 2012-02-21 20:47:13 UTC
Description of Problem:

The TcpClient and TcpListener classes on Windows do not correctly create IPv6 sockets.  A SocketException with the message "An address incompatible with the requested protocol" is returned.  

Steps to reproduce the problem:
1. Attempt to open a TcpClient or TcpListener with an IPv6 IPEndpoint.


How often does this happen? 

Always

Additional Information:
Comment 1 Glenn Engel 2016-05-17 22:39:52 UTC
We are seeing a similar issue with TcpClient.BeginConnect: http://forums.xamarin.com/discussion/66732/does-xamarin-support-ios-ipv6-only-networks
Comment 2 Marek Safar 2017-04-04 13:20:49 UTC
It should be fixed in master