Have you checked and confirmed you don't have a FIREWALL issue?

Can you remotely connnect with any other tools?

For error output in KiX script with COM you can use this.

Val('&' + Right(DecToHex(@ERROR), 4))