client.connect fails and returns 0.

Yes, I have tried both ways to specify the server, there wasn't any recognizable change while processing.

I'm not sure if I understood correctly that the given CPU time has been exceeded due to amount of the network stuff to be done? If so.. Is there any chance to overcome it by for example changing configuration?
Or trying to use another method for sending data?

Thank you for recommendation, but for some reasons we cannot manage to change the equipment to such expencive one cause it is being done for our Studies project.

And thanks for your response!