Connection Timeout when connecting to Docker based Temporal setup


I have Temporal setup in a different machine. I am able to access Temporal UI from my machine but when I try to eexecute below code i get connection timeout error. Please help
I have used the docker imaged mentioned in the Temporal setup.

WorkflowServiceStubs service =
.setSslContext(SimpleSslContextBuilder.newBuilder(clientCert, clientKey).build())

Hi @Faizan_Kamal, did Maxims reply on your question here: How to point a workflow client or a worker to the remote instance of Temporal server? - #6 by cg1972