# startMediaCasterStream rtsp connection

**URL:** https://community.wowza.com/t/startmediacasterstream-rtsp-connection/37274
**Category:** Wowza Streaming Engine
**Created:** [November 17, 2014, 1:23am UTC](https://community.wowza.com/t/startmediacasterstream-rtsp-connection/37274 "2014-11-17T01:23:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Bora\_Erbas](https://avatars.discourse-cdn.com/v4/letter/b/8797f3/32.png) [@Bora\_Erbas](https://community.wowza.com/u/Bora_Erbas)
#### Post date: [November 17, 2014, 1:23am UTC](https://community.wowza.com/t/startmediacasterstream-rtsp-connection/37274/1 "2014-11-17T01:23:35Z")

</div>

Hi All,

I need to find out the local port number that Wowza got when connecting to an RTSP camera.

We use startMediaCasterStream call to connect to remote cameras.

Is there a callback to intercept when Wowza does the actual connection to the camera so we can find out the local port before the RTSP message exchange begins?

Regards,

Bora.

---

<div class="post-metadata">

### Author: ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)
#### Post date: [November 17, 2014, 9:29pm UTC](https://community.wowza.com/t/startmediacasterstream-rtsp-connection/37274/2 "2014-11-17T21:29:05Z")

</div>

RTSP port is 554 for TCP/UDP. Are you pulling the stream from the RTSP source via a stream file? The source will advertise itself on that port if acting as as server and you just need to set up a stream file in Wowza up pull the stream in. [This article](https://www.wowza.com/docs/how-to-re-stream-video-from-an-ip-camera-rtsp-rtp-re-streaming%28RTSP-RTP-re-streaming%29) describes that method.

---

<div class="post-metadata">

### Author: ![Bora\_Erbas](https://avatars.discourse-cdn.com/v4/letter/b/8797f3/32.png) [@Bora\_Erbas](https://community.wowza.com/u/Bora_Erbas)
#### Post date: [November 17, 2014, 9:32pm UTC](https://community.wowza.com/t/startmediacasterstream-rtsp-connection/37274/3 "2014-11-17T21:32:07Z")

</div>

Yes we use stream files to publish streams.

But what I need to find out is the _outgoing_ TCP port of Wowza when it connects to the camera.

This outgoing port should be different for each stream (i.e. each TCP connection).

Regards.
