# Connect to embedded node via transport protocol

**URL:** <https://discuss.elastic.co/t/connect-to-embedded-node-via-transport-protocol/93184>\
**Category:** Elasticsearch\
**Created:** [July 14, 2017, 12:11pm UTC](https://discuss.elastic.co/t/connect-to-embedded-node-via-transport-protocol/93184 "2017-07-14T12:11:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felk](https://avatars.discourse-cdn.com/v4/letter/f/ee7513/32.png) [@Felk](https://discuss.elastic.co/u/Felk)\
**Post date:** [July 14, 2017, 12:11pm UTC](https://discuss.elastic.co/t/connect-to-embedded-node-via-transport-protocol/93184/1 "2017-07-14T12:11:20Z")

</div>

First off, I know embedded servers are not officially supported. I'm glad for any "unofficial" help too.

I am trying to connect to an embedded node with a TransportClient. The embedded node gets created with the Node class like this:

```
final Settings settings = Settings.builder()
            // some settings omitted
            .put("cluster.name", clusterName)
            .put("transport.bind_host", "127.0.0.1")
            .put("http.enabled", false)
            .put("transport.type", "netty4")
            .put("transport.tcp.port", 9350)
            .build();
node = new Node(settings);

```

However, I get the following error:

> java.lang.IllegalStateException: Unsupported transport.type [netty4]

The only semi-documented way to use the `transport.type` settings is `transport.type: local`, but I want it to be accessible. Setting it to `local` causes `connection refused` errors. `netty4` is what I tried looking through the source code, with no success. Omitting the setting makes Elasticsearch assume empty string instead of a default, causing a similar error:

> java.lang.IllegalStateException: Unsupported transport.type

How do I configure the internal node in a way that lets an external transport client connect to it?

---

<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:** [August 11, 2017, 12:11pm UTC](https://discuss.elastic.co/t/connect-to-embedded-node-via-transport-protocol/93184/2 "2017-08-11T12:11:34Z")

</div>

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