<p>I'm using the open-source 5.0 Hazelcast cluster which was deployed on k8s. However, I have been met connection issues from client to server with smart client strategy.</p>
<p>I used python code example as above:</p>
<pre><code>client = HazelcastClient(
cluster_name=&quot;dev&quot;,
ssl_password=&quot;password&quot;,
cluster_members=[
  &quot;IPADDRESS1_MASTER_K8s:Nodeport1&quot;
  &quot;IPADDRESS2_MASTER_K8s:Nodeport2&quot;
  &quot;IPADDRESS3_MASTER_K8s:Nodeport3&quot;
],
) 
</code></pre>
<p>Issue:
<a href="https://i.stack.imgur.com/YsKpr.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>Thanks all.</p>

DungLe
<p>You should enable External Smart Client Discovery by passing <code>use_public_ip=True</code> to the client constructor:</p>
<pre><code>client  = HazelcastClient(
...
use_public_ip=True
...
)
</code></pre>
<p>That should solve the issue.</p>
