# Transport address from elasticsearch.yml config

**URL:** https://discuss.elastic.co/t/transport-address-from-elasticsearch-yml-config/128623
**Category:** Elasticsearch
**Created:** [April 19, 2018, 5:11am UTC](https://discuss.elastic.co/t/transport-address-from-elasticsearch-yml-config/128623 "2018-04-19T05:11:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![satyarajp](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@satyarajp](https://discuss.elastic.co/u/satyarajp)
#### Post date: [April 19, 2018, 5:11am UTC](https://discuss.elastic.co/t/transport-address-from-elasticsearch-yml-config/128623/1 "2018-04-19T05:11:44Z")

</div>

Hi Team,

Have a little confusion in `elasticsearch.yml` to hold transport addresses.

> [@Providing transport addresses through yml file](https://discuss.elastic.co/t/providing-transport-addresses-through-yml-file/8068/3):
>
> Isn't transport.host is used to bind to or publish a certain IP address of a node? If yes, then it cannot be used to specify remote host that will used to connect to for discovery. But I did try both of the following settings, and neither of it works - transport.host: 192.168.1.8 http\_host: 192.168.1.8 I get same NoNodeNameAvailable exception. On Jun 13, 2012, at 2:46 AM, Sebastian Wendel wrote: Hi Ashish, maybe that what you're looking for: transport.host: eth1:ipv4 Greetings, Sebas…

In the above post Kimchy commented we cant provide addresses in yml file.

```
//settings contain only cluster.name
    client = new PreBuiltTransportClient(settings)
    			.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("localhost"), 9300));

```

Now, if above code is migrated to cluster where Elasticsearch exists on another server.  
How do I add this transport address in external yml, so that my code would know.  
Can we? Cannot?

Pls Help

Thank you,  
Regards,  
SatyaRaj

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 17, 2018, 5:11am UTC](https://discuss.elastic.co/t/transport-address-from-elasticsearch-yml-config/128623/2 "2018-05-17T05:11:54Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
