That's the strange part though. It doesn't work over TLS, SSL, or anything else.
It worked perfectly not long ago and I have not changed anything. I have another UCS instance for testing and that one still works perfectly.
Attempting a TLS connection gives the exact same error as above.