# How do we set Host option in workflow client in temporal?

**URL:** <https://community.temporal.io/t/how-do-we-set-host-option-in-workflow-client-in-temporal/465>\
**Category:** Community Support\
**Tags:** java-sdk, workflow-options\
**Created:** [August 14, 2020, 9:25pm UTC](https://community.temporal.io/t/how-do-we-set-host-option-in-workflow-client-in-temporal/465 "2020-08-14T21:25:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shawel\_negussie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/shawel_negussie/32/231_2.png) [@shawel\_negussie](https://community.temporal.io/u/shawel_negussie)\
**Post date:** [August 14, 2020, 9:25pm UTC](https://community.temporal.io/t/how-do-we-set-host-option-in-workflow-client-in-temporal/465/1 "2020-08-14T21:25:54Z")

</div>

Hi,  
I do not see an option to set host in temporal

val client: WorkflowClient = WorkflowClient.newInstance

Thanks

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [August 14, 2020, 9:40pm UTC](https://community.temporal.io/t/how-do-we-set-host-option-in-workflow-client-in-temporal/465/2 "2020-08-14T21:40:18Z")

</div>

It is indeed not obvious as it is done through WorkflowServiceStubOptions:

```java
 WorkflowServiceStubsOptions options =
        WorkflowServiceStubsOptions.newBuilder().setTarget("host:port").build();
 WorkflowServiceStubs stubs = WorkflowServiceStubs.newInstance(options);
 WorkflowClient client = WorkflowClient.newInstance(stubs);

```

---

<div class="post-metadata">

**Author:** ![shawel\_negussie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/shawel_negussie/32/231_2.png) [@shawel\_negussie](https://community.temporal.io/u/shawel_negussie)\
**Post date:** [August 14, 2020, 11:52pm UTC](https://community.temporal.io/t/how-do-we-set-host-option-in-workflow-client-in-temporal/465/3 "2020-08-14T23:52:55Z")

</div>

Ok thank you @maxim
