Skip to content

Commit

Permalink
[CN-1274] Update java and nodejs examples to use public IP in expose …
Browse files Browse the repository at this point in the history
…externally page (#203)

* update java example in expose externally page

* configure nodejs client to use public IP
  • Loading branch information
semihbkgr authored May 13, 2024
1 parent a369a5f commit e6f6c8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/modules/ROOT/pages/connect-outside-kubernetes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ Java::
----
ClientConfig config = new ClientConfig();
config.getNetworkConfig().addAddress("35.230.92.217");
config.getProperties().setProperty(ClientProperty.DISCOVERY_SPI_PUBLIC_IP_ENABLED.toString(), "true");
HazelcastInstance client = HazelcastClient.newHazelcastClient(config);
----
--
Expand All @@ -156,6 +157,9 @@ const clientConfig = {
clusterMembers: [
'35.230.92.217'
]
},
properties: {
['hazelcast.discovery.public.ip.enabled']: true
}
};
const client = await Client.newHazelcastClient(clientConfig);
Expand Down

0 comments on commit e6f6c8c

Please sign in to comment.