rdavisau / sockets-for-pcl

Cross-platform socket API for Xamarin iOS/Android/Forms, Xamarin.Mac/MonoMac, Windows Phone 8/8.1, Windows Store and Windows Desktop.
MIT License
224 stars 72 forks source link

[iOS] Requires IPv6 #136

Closed alanspires closed 5 years ago

alanspires commented 7 years ago

T-Mobile requires IPV6 now while other carriers I've tested are still OK with IPV4.

I was having an issue where I could not connect to hosts only on T-Mobile and this fix was to change the _backingTcpClient in TcpSocketClient to

_backingTcpClient = new TcpClient(AddressFamily.InterNetworkV6);

also had to adjust disconnect code which recreates the tcpClient.

Would be nice if there was an option to allow for explicitly setting this.

References: https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/UnderstandingandPreparingfortheIPv6Transition/UnderstandingandPreparingfortheIPv6Transition.html

https://support.t-mobile.com/thread/132720