Thanks Lowell!
I did try the code sent by you but I'm still getting the same error message as before -
CTLIB Message: - L6/O8/S5/N3/5/0:
ct_connect(): directory service layer: internal directory control layer error: Requested server name not found.
Establishing connection failed.
Can you interpret the message and advice? 😉