# how to disconnect a stream which is connect without stream file, Example appName:xxxx or streamName:2263. I am stuck in issue please help as soon as possible.

**URL:** <https://community.wowza.com/t/how-to-disconnect-a-stream-which-is-connect-without-stream-file-example-appname-xxxx-or-streamname-2263-i-am-stuck-in-issue-please-help-as-soon-as-possible/51125>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api, server-administration\
**Created:** [April 12, 2018, 4:27pm UTC](https://community.wowza.com/t/how-to-disconnect-a-stream-which-is-connect-without-stream-file-example-appname-xxxx-or-streamname-2263-i-am-stuck-in-issue-please-help-as-soon-as-possible/51125 "2018-04-12T16:27:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vipin\_pokhriyal](https://avatars.discourse-cdn.com/v4/letter/v/f14d63/32.png) [@vipin\_pokhriyal](https://community.wowza.com/u/vipin_pokhriyal)\
**Post date:** [April 12, 2018, 4:27pm UTC](https://community.wowza.com/t/how-to-disconnect-a-stream-which-is-connect-without-stream-file-example-appname-xxxx-or-streamname-2263-i-am-stuck-in-issue-please-help-as-soon-as-possible/51125/1 "2018-04-12T16:27:00Z")

</div>

here is not any disconnect option in Action field.  
if i am using :

curl -X PUT --header ‘Accept:application/json; charset=utf-8’ --header ‘Content-Type:application/json; charset=utf-8’ [http://localhost:8087/v2/servers/](http://localhost:8087/v2/servers/)_defaultServer_/vhosts/_defaultVHost_/applications/xxxx/instances/_definst_/incomingstreams/2263/actions/disconnectStream

command Not working.

---

<div class="post-metadata">

**Author:** ![vipin\_pokhriyal](https://avatars.discourse-cdn.com/v4/letter/v/f14d63/32.png) [@vipin\_pokhriyal](https://community.wowza.com/u/vipin_pokhriyal)\
**Post date:** [April 12, 2018, 7:03am UTC](https://community.wowza.com/t/how-to-disconnect-a-stream-which-is-connect-without-stream-file-example-appname-xxxx-or-streamname-2263-i-am-stuck-in-issue-please-help-as-soon-as-possible/51125/2 "2018-04-12T07:03:08Z")

</div>

Showing this type of message

{“message”:“The server has not found anything matching the request URI”,“code”:“404”,“wowzaServer”:“4.7.1”,“success”:false}

---

<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:** [April 13, 2018, 2:01am UTC](https://community.wowza.com/t/how-to-disconnect-a-stream-which-is-connect-without-stream-file-example-appname-xxxx-or-streamname-2263-i-am-stuck-in-issue-please-help-as-soon-as-possible/51125/3 "2018-04-13T02:01:55Z")

</div>

The disconnectStream action endpoint that you are using is not suitable for these types of streams. The disconnectStream is only used for streams that are connected using the MediaCaster stream file, where the server is the one that initiated the connection. In the streams you have, these look to be initiated by the encoder (push type of publish). For example, Wirecast and OBS are push-type encoders.

If you need to remove these streams, you will need to reject them using custom security methods, such as [blocking by IP address](https://www.wowza.com/docs/how-to-limit-publishing-of-live-streams-by-ip-list) or [blocking according to bandwidth usage](https://www.wowza.com/docs/how-to-monitor-bandwidth-of-published-streams-modulelimitpublishedstreambandwidth).

---

<div class="post-metadata">

**Author:** ![Dmitry\_Smith](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/dmitry_smith/32/666_2.png) [@Dmitry\_Smith](https://community.wowza.com/u/Dmitry_Smith)\
**Post date:** [June 16, 2021, 10:43am UTC](https://community.wowza.com/t/how-to-disconnect-a-stream-which-is-connect-without-stream-file-example-appname-xxxx-or-streamname-2263-i-am-stuck-in-issue-please-help-as-soon-as-possible/51125/4 "2021-06-16T10:43:59Z")

</div>

So, is there any way to programmatically stop/disconnect particular stream which is broadcasting via OBS using Wowza Streaming Engine REST API?

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [June 16, 2021, 9:30pm UTC](https://community.wowza.com/t/how-to-disconnect-a-stream-which-is-connect-without-stream-file-example-appname-xxxx-or-streamname-2263-i-am-stuck-in-issue-please-help-as-soon-as-possible/51125/5 "2021-06-16T21:30:02Z")

</div>

No you will need to stop it manually. As Michelle said OBS is pushing the stream to Wowza and we can only programmatically stop or [disconnect a stream in the REST API](https://www.wowza.com/docs/stream-management-query-examples#disconnectstreamfile) where we pull the stream file like from an IP camera when someone attempts connect to a surveillance stream. Wowza can pull that stream.

With OBS or most RTMP encoders, the stream is being pushed to the Wowza media server.
