# Get master node from transportClient

**URL:** <https://discuss.elastic.co/t/get-master-node-from-transportclient/74020>\
**Category:** Elasticsearch\
**Created:** [February 6, 2017, 7:53am UTC](https://discuss.elastic.co/t/get-master-node-from-transportclient/74020 "2017-02-06T07:53:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Davidovich](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@Alex\_Davidovich](https://discuss.elastic.co/u/Alex_Davidovich)\
**Post date:** [February 6, 2017, 7:53am UTC](https://discuss.elastic.co/t/get-master-node-from-transportclient/74020/1 "2017-02-06T07:53:28Z")

</div>

I am working on a test where i want to stop and start the master node.  
How can I get the master node via transportClient?

---

<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:** [March 6, 2017, 7:54am UTC](https://discuss.elastic.co/t/get-master-node-from-transportclient/74020/2 "2017-03-06T07:54:15Z")

</div>

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