# Rstp multi client

**URL:** https://forum.amebaiot.com/t/rstp-multi-client/3089
**Category:** Multimedia
**Tags:** rtl8735b
**Created:** [July 7, 2024, 7:07am UTC](https://forum.amebaiot.com/t/rstp-multi-client/3089 "2024-07-07T07:07:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AI\_Test](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/ai_test/32/1835_2.png) [@AI\_Test](https://forum.amebaiot.com/u/AI_Test)
#### Post date: [July 7, 2024, 7:07am UTC](https://forum.amebaiot.com/t/rstp-multi-client/3089/1 "2024-07-07T07:07:48Z")

</div>

hi,  
the example handles well the first client connected . but a second client can not connect until the first one disconnects.  
how to handle multi clients at the same time?  
thanks

---

<div class="post-metadata">

### Author: ![Pammy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/pammy/32/936_2.png) [@Pammy](https://forum.amebaiot.com/u/Pammy)
#### Post date: [July 8, 2024, 1:41am UTC](https://forum.amebaiot.com/t/rstp-multi-client/3089/2 "2024-07-08T01:41:30Z")

</div>

Hi,

If you would like to get a second client to connect, you can try using a different port number.

Your first client should be rtsp://{ipadddress}:554 (554 is the default port number).

You can use port number 555 for your second client. To stream, key in rtsp://{ipadddress}:555 in VLC.

The port number can be found in rtsp\_api.h to modify

 ![image](https://us1.discourse-cdn.com/flex016/uploads/ameba/original/2X/9/92a740e4c843ac629a345d01770fe9d7619ead7b.png)
