Config cfg = new Config();
cfg.getNetworkConfig().getJoin().getMulticastConfig().setEnabled(false);
HazelcastInstance h1 = Hazelcast.newHazelcastInstance(cfg);
// Connect a client to the cluster
ClientConfig clientConfig = new ClientConfig() ;
InetSocketAddress localMemberAddress = h1.getCluster().getLocalMember().getInetSocketAddress();
clientConfig.addInetSocketAddress(localMemberAddress);
HazelcastClient client = HazelcastClient.newHazelcastClient(clientConfig);
// Add a key/value in the cluster using the client
String mapName = "123";
IMap<String, String> mapClient = client.getMap(mapName);