# RTSP Authentication

**URL:** <https://community.wowza.com/t/rtsp-authentication/34886>\
**Category:** Wowza Streaming Engine\
**Created:** [March 9, 2011, 2:39pm UTC](https://community.wowza.com/t/rtsp-authentication/34886 "2011-03-09T14:39:34Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![a\_Dorn](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@a\_Dorn](https://community.wowza.com/u/a_Dorn)\
**Post date:** [June 1, 2011, 1:49pm UTC](https://community.wowza.com/t/rtsp-authentication/34886/21 "2011-06-01T13:49:25Z")

</div>

Sorry, we have a direct peering with the video-provider on an non-public IP.

The RTSP URL is like: rtsp://user:passwd@10.0.20/channel01 saved into a contents/mystream.stream file.

There is no chance to get an connection via Internet.

---

<div class="post-metadata">

**Author:** ![a\_Dorn](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@a\_Dorn](https://community.wowza.com/u/a_Dorn)\
**Post date:** [June 1, 2011, 7:52pm UTC](https://community.wowza.com/t/rtsp-authentication/34886/22 "2011-06-01T19:52:32Z")

</div>

Thanks, your are really fast! I’ll check it on monday and give response.

---

<div class="post-metadata">

**Author:** ![a\_Dorn](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@a\_Dorn](https://community.wowza.com/u/a_Dorn)\
**Post date:** [June 7, 2011, 10:26am UTC](https://community.wowza.com/t/rtsp-authentication/34886/23 "2011-06-07T10:26:47Z")

</div>

Hi Charlie ,

It#s working a bit better now. In stead of “Unauthorized”, I get a “Bad Request” Response, because the server from our Video-Supplier does not understand

“RTP/AVP/UDP”. It want to see “RTP/AVP”. Our Video-Supplier will update their server to understand “RTP/AVP/UDP”.

If it’s possible, to configure Wowza to request “RTP/AVP”, it could save me some time.

Regards

adorn

---

<div class="post-metadata">

**Author:** ![a\_Dorn](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@a\_Dorn](https://community.wowza.com/u/a_Dorn)\
**Post date:** [June 8, 2011, 4:09pm UTC](https://community.wowza.com/t/rtsp-authentication/34886/24 "2011-06-08T16:09:27Z")

</div>

Hi Charlie,

TEARDOWN needs also an Auth-String:

PLAY rtsp://10.0.0.20/channel01 RTSP/1.0

Session: 00010000

CSeq: 6

Range: npt=0.000-

User-Agent: Wowza Media Server Pro (Wowza Media Server 2 Perpetual 2.2.3.09 build27256)

Authorization: Basic ABCDEFGHIJKLMNOP=

RTSP/1.0 200 OK

CSeq: 6

Session: 00010000

Range: npt=now-

TEARDOWN rtsp://10.110.46.13/channel01 RTSP/1.0

Session: 00010000

CSeq: 7

User-Agent: Wowza Media Server Pro (Wowza Media Server 2 Perpetual 2.2.3.09 build27256)

RTSP/1.0 401 Unauthorized

CSeq: 7

WWW-Authenticate: Basic realm="/"

Wowza closes the UDP-Port, but there are still incomming RTP-Packages.

Regards

adorn

---

<div class="post-metadata">

**Author:** ![a\_Dorn](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@a\_Dorn](https://community.wowza.com/u/a_Dorn)\
**Post date:** [June 8, 2011, 4:55pm UTC](https://community.wowza.com/t/rtsp-authentication/34886/25 "2011-06-08T16:55:48Z")

</div>

Still the same Problem ☹

---

<div class="post-metadata">

**Author:** ![a\_Dorn](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@a\_Dorn](https://community.wowza.com/u/a_Dorn)\
**Post date:** [June 8, 2011, 5:55pm UTC](https://community.wowza.com/t/rtsp-authentication/34886/26 "2011-06-08T17:55:35Z")

</div>

Argh… Wrong ClassPath in Eclipse Now the Terdown is working:

TEARDOWN rtsp://10.0.0.2/channel01 RTSP/1.0

Session: 00010000

CSeq: 5

Authorization: Basic ABCDEFGHIJKLMNOP=

User-Agent: Wowza Media Server Pro (Wowza Media Server 2 Perpetual 2.2.4.02 build27517)

I still get no video to screen.

My console Out:

INFO stream create - -

Start Streamiglz1.stream[]

INFO server comment - RTPMediaCaster.create[11600861]

INFO server comment - RTPMediaCaster.init[11600861]

INFO server comment - RTPMediaCaster.Reconnector[11600861:strassefrei/_definst_:iglz1.stream]: start: 1

INFO server comment - RTPSessionTracker.add[rtsp://10.0.0.2/channel01]: 1

ERROR server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: CSeq less than zero

INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.buildSDPData: sessionId:00010000 sessionTimeout:30000

INFO server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo[strassefrei/_definst_]: RTSP/RTP re-streaming. Success, received SDP data.

INFO server comment - onStreamCreate: streamMap:[]

INFO stream create - -

INFO server comment - RTPUDPTransport.bind[strassefrei/_definst_]: 0.0.0.0/0.0.0.0:49998

INFO server comment - RTPUDPTransport.bind[strassefrei/_definst_]: 0.0.0.0/0.0.0.0:49999

INFO stream publish iglz1.stream -

INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.sessionStart: PLAY: rtsp://10.0.0.2/channel01

INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: PLAY: rtsp://10.0.0.2/channel01

INFO server comment - RTPMediaCaster.Reconnector[11600861:strassefrei/_definst_:iglz1.stream]: done: 1

INFO server comment - LivePlayer.play[strassefrei/_definst_/iglz1.stream]: Dynamic Stream Markers are on.

INFO server comment - UDPTransport.firstPacket: bind:0.0.0.0/0.0.0.0:49998 msg:/10.0.0.2:56808

stream allready started

INFO server comment - LivePlayer.play[strassefrei/_definst_/iglz1.stream]: Dynamic Stream Markers are on.

stream allready started

INFO server comment - LivePlayer.play[strassefrei/_definst_/iglz1.stream]: Dynamic Stream Markers are on.

INFO server comment - **RTPMediaCaster.streamTimeout[11600861:strassefrei/_definst_:iglz1.stream]: timeout:12000 diff:12500 reason:101**

INFO server comment - RTPMediaCaster.resetConnection[11600861:strassefrei/_definst_:iglz1.stream]:

INFO server comment - RTPMediaCaster.closeRTPSession[11600861:strassefrei/_definst_:iglz1.stream]

INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.close closeSession

INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.onClose

INFO server comment - RTPSessionTracker.remove[rtsp://10.0.0.2/channel01]: 0:true

INFO server comment - RTPUDPTransport.unbind[strassefrei/_definst_]: 0.0.0.0/0.0.0.0:49998

INFO server comment - RTPUDPTransport.unbind[strassefrei/_definst_]: 0.0.0.0/0.0.0.0:49999

INFO stream unpublish iglz1.stream -

INFO server comment - onStreamDestroy: streamMap:[iglz1.stream]

INFO stream destroy iglz1.stream -

regards

adorn

---

<div class="post-metadata">

**Author:** ![a\_Dorn](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@a\_Dorn](https://community.wowza.com/u/a_Dorn)\
**Post date:** [June 9, 2011, 8:50pm UTC](https://community.wowza.com/t/rtsp-authentication/34886/27 "2011-06-09T20:50:49Z")

</div>

Thanks for your fast reply!

The RTP Traffic is reaching Wowza (See:INFO server comment - UDPTransport.firstPacket: bind:0.0.0.0/0.0.0.0:49998 msg:/10.0.0.2:56808

stream allready started). But I can’t see any RTCP traffic on wireshark.

[Previous page](https://community.wowza.com/t/rtsp-authentication/34886.md?page=1)
