title: Elasticsearch cluster connection
body: <p>It might be a dumb question but i was unable to find answer.
  If I am having 3 nodes in my cluster so do need to provide the IP and Port of each node while creating transport client so that i can communicate with each node??</p>
  
  <pre><code>new PreBuiltTransportClient(settings, AuthenticationPlugin.class).addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("localhost"),
                          Integer.parseInt("9300")))
                          .addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("localhost"),
                          Integer.parseInt("9301")))
  InetSocketTransportAddress(InetAddress.getByName("localhost"),
                          Integer.parseInt("9302")));;
  </code></pre>
  
  <p>Is there any way where i don't need to provide IP and Port of each node ??
  Please help</p>