the fact you get the Unauthorized error makes it look like the connection is attempted. So I would check and make sure the credentials you are using are correct on SharePoint side.
Check with admin on SharePoint side if the account your using is allowed and has the correct privileges. Perhaps they can even see what's causing your error.
If account and permission seem correct try checking for domain related permissions.