UWP use StreamSocket instead of TcpClient

history edit

C#, UWP

When accessing a remote port from a UWP app, using TcpClient, an ExtendedSocketException ‘An attempt was made to access a socket in a way forbidden by its access permissions’ is thrown.