# Connection issue with GoCoder iOS sdk + Streaming cloud

**URL:** <https://community.wowza.com/t/connection-issue-with-gocoder-ios-sdk-streaming-cloud/48090>\
**Category:** Wowza GoCoder SDK\
**Created:** [January 30, 2017, 12:08pm UTC](https://community.wowza.com/t/connection-issue-with-gocoder-ios-sdk-streaming-cloud/48090 "2017-01-30T12:08:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dima\_Nikolaenko](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@Dima\_Nikolaenko](https://community.wowza.com/u/Dima_Nikolaenko)\
**Post date:** [January 30, 2017, 12:08pm UTC](https://community.wowza.com/t/connection-issue-with-gocoder-ios-sdk-streaming-cloud/48090/1 "2017-01-30T12:08:57Z")

</div>

Hello!

I have an issue when trying to broadcast stream to Wowza Streaming Cloud from iOS device. I’m using GoCoder SDK for this.

I setup Cloud Stream instance to use other RTMP as video source encoder and authentication is enabled.

The workflow is following:

1. I call Wowza Streaming Cloud API to start a stream, then setup GoCoder config with returned information.

2. Check Cloud Stream status via API, and when stream is started, start broadcasting

And I receive a following error at this point

Error Domain=com.wowza.gocoder.sdk Code=14 "An error occurred when trying to connect to host: “” UserInfo={NSLocalizedDescription=An error occurred when trying to connect to host: }

But if I do the same steps from above, but will wait for few more seconds before start broadcasting, everything works fine.

SDK version is 1.0.3

Platform info is Device Model = iPhone6,1 [iPhone 5s (GSM)], OS Version = Version 10.2.1 (Build 14D27)

Can you please give any advice what can cause a problem?

Best, Dima.

---

<div class="post-metadata">

**Author:** ![Arthur\_Poghosyan](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@Arthur\_Poghosyan](https://community.wowza.com/u/Arthur_Poghosyan)\
**Post date:** [March 11, 2017, 3:45pm UTC](https://community.wowza.com/t/connection-issue-with-gocoder-ios-sdk-streaming-cloud/48090/2 "2017-03-11T15:45:40Z")

</div>

I have the same issue. Tell me please, if you find solution. Thank you.

---

<div class="post-metadata">

**Author:** ![yuri\_bog](https://avatars.discourse-cdn.com/v4/letter/y/d26b3c/32.png) [@yuri\_bog](https://community.wowza.com/u/yuri_bog)\
**Post date:** [March 19, 2017, 2:09am UTC](https://community.wowza.com/t/connection-issue-with-gocoder-ios-sdk-streaming-cloud/48090/3 "2017-03-19T02:09:58Z")

</div>

I have the same issue.

---

<div class="post-metadata">

**Author:** ![Akshit\_Zaveri](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Akshit\_Zaveri](https://community.wowza.com/u/Akshit_Zaveri)\
**Post date:** [June 10, 2017, 2:42pm UTC](https://community.wowza.com/t/connection-issue-with-gocoder-ios-sdk-streaming-cloud/48090/4 "2017-06-10T14:42:30Z")

</div>

Same issue here.

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [June 23, 2017, 1:34am UTC](https://community.wowza.com/t/connection-issue-with-gocoder-ios-sdk-streaming-cloud/48090/5 "2017-06-23T01:34:33Z")

</div>

It sounds like the issue is in the DNS propagation for the hostAddress. You can try using the IP address instead of the host name and see if this resolves the issue for you.

Michelle

---

<div class="post-metadata">

**Author:** ![Truong\_Vo](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@Truong\_Vo](https://community.wowza.com/u/Truong_Vo)\
**Post date:** [August 22, 2017, 12:19am UTC](https://community.wowza.com/t/connection-issue-with-gocoder-ios-sdk-streaming-cloud/48090/6 "2017-08-22T00:19:37Z")

</div>

@Michelle B How to get the IP address of the host? I am using Wowza Streaming Cloud REST API to create a stream and having the same issue as above

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [August 23, 2017, 12:58am UTC](https://community.wowza.com/t/connection-issue-with-gocoder-ios-sdk-streaming-cloud/48090/7 "2017-08-23T00:58:59Z")

</div>

An alternative for you may be to use third-party libraries that provide reachability methods. You can then run this as an asynchronous timer task until it returns a valid response, and populate your WowzaConfig object. Note that Cloud instances that have just been created do take some time to startup/get an IP address. It’s best to have a pool of transcoders that have been pre-configured and ready to launch. This will reduce the possibility that the DNS hostname has not propagated yet.
