# how to check connection

**URL:** <https://community.wowza.com/t/how-to-check-connection/41657>\
**Category:** Wowza Streaming Engine\
**Created:** [September 26, 2014, 12:46pm UTC](https://community.wowza.com/t/how-to-check-connection/41657 "2014-09-26T12:46:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tatiya\_tiansan](https://avatars.discourse-cdn.com/v4/letter/t/d07c76/32.png) [@tatiya\_tiansan](https://community.wowza.com/u/tatiya_tiansan)\
**Post date:** [September 26, 2014, 12:46pm UTC](https://community.wowza.com/t/how-to-check-connection/41657/1 "2014-09-26T12:46:23Z")

</div>

i want To check that the IP address is online on Streamname.

example

ip 10.10.1.15 accept ch1.stream

try new connect ch1.stream

if(10.10.1.15 connect)

return false;

Thank you

---

<div class="post-metadata">

**Author:** ![Emre\_Karatasoglu\_Adv](https://avatars.discourse-cdn.com/v4/letter/e/0ea827/32.png) [@Emre\_Karatasoglu\_Adv](https://community.wowza.com/u/Emre_Karatasoglu_Adv)\
**Post date:** [September 28, 2014, 3:00pm UTC](https://community.wowza.com/t/how-to-check-connection/41657/2 "2014-09-28T15:00:14Z")

</div>

Hi Tatiya123,

Where do you want to check connection ? from as3 while netconnection connect ? or in your another webapp ?

Also you can control client is connected or not , if connected , not watch again logic ,

create custom module in Wowza.

you need to get “the client ip” and “Stream name” in onConnect , httpConnect etc connection methods by overriding.

The best way is creating key value pair to hold ip and stream name and comparing data {hasmap can be used} , when client disconnect, remove the key and data from your list.

If client is watching ch1 , then reject the request .

You can override

> public void onConnectReject(IClient client) {
> 
> client.rejectConnection();
> 
> }//It’s for flash.

Kind Regards,

Emre Karatasoglu

emre.karatasoglu@hotmail.com

**LetheaSoftware**

[http://letheasoftware.com](http://letheasoftware.com)

[http://emrekaratasoglu.com](http://emrekaratasoglu.com)[PHP][/PHP]
