Basic authentication failing with 401 error using SDK

I am trying to login a basic user using the SDK 2017 R3 TcpVideoViewer sample.

I am trying to pass credentials for a basic user that I created, and the user is enrolled the Administrators group.

I am able to login using the Milestone client with the basic authentication for the above user.

From the TcpVideoViewer sample I get 401 - Not authorized as a return code when specifying SystemInfo.AuthenticationType.Basic on line 91 of [C:\Program](file:C:/Program) Files\Milestone\MIPSDK\ProtocolSamples\TcpVideoViewer\WindowMain.xaml.cs.

The server is XProtect Essential+ version 2018 R1.

Thank you very much for your assistance.

I tried the recommendation in this post https://developer.milestonesys.com/s/question/0D50O00004BExHpSAL/cant-login-via-protocol-integration-with-basic-authentication?t=1524229710128 but I am getting a timeout 408 when specifying https for the URL.