# problem on RTSP Authentication

**URL:** <https://community.wowza.com/t/problem-on-rtsp-authentication/35525>\
**Category:** Wowza Streaming Engine\
**Created:** [December 28, 2011, 9:43pm UTC](https://community.wowza.com/t/problem-on-rtsp-authentication/35525 "2011-12-28T21:43:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![keith\_lai](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@keith\_lai](https://community.wowza.com/u/keith_lai)\
**Post date:** [December 28, 2011, 9:43pm UTC](https://community.wowza.com/t/problem-on-rtsp-authentication/35525/1 "2011-12-28T21:43:28Z")

</div>

We are trying to setup the RTSP Authentication.

I’ve setup the public.password file for RTP authentication also we’ve configured the application RTP/Authentication/PlayMethod to digest in the application.xml. Everything goes well after configuration, the stream is protected with the username.

Except when I am trying to use VLC to connect, it ask me twice for username and password on every request. any idea? By the way, I am using the mediacache in this application.

The log in console shows the following, it seems that the VLC player is trying to connect twice…:-

INFO stream stop c1/1/iphone\_sample.mp4 -

INFO stream destroy c1/1/iphone\_sample.mp4 -

INFO rtsp disconnect 1152285236 -

INFO rtsp connect 316413612 -

INFO stream create - -

INFO rtsp describe 316413612 -

INFO server comment - RTPUDPTransport.bind[bbvdoapps/_definst_]: in:0.0.0.0/0.0.0.0:6974 out:/10.10.10.8:54720

INFO server comment - RTPUDPTransport.bind[bbvdoapps/_definst_]: in:0.0.0.0/0.0.0.0:6975 out:/10.10.10.8:54721

INFO server comment - RTPUDPTransport.bind[bbvdoapps/_definst_]: in:0.0.0.0/0.0.0.0:6976 out:/10.10.10.8:54722

INFO server comment - RTPUDPTransport.bind[bbvdoapps/_definst_]: in:0.0.0.0/0.0.0.0:6977 out:/10.10.10.8:54723

INFO stream play c1/1/iphone\_sample.mp4 -

INFO rtsp play 316413612 -

INFO server comment - RTPUDPTransport.unbind[bbvdoapps/_definst_]: 0.0.0.0/0.0.0.0:6974 sent:180 recv:0

INFO server comment - RTPUDPTransport.unbind[bbvdoapps/_definst_]: 0.0.0.0/0.0.0.0:6975 sent:4 recv:0

INFO server comment - RTPUDPTransport.unbind[bbvdoapps/_definst_]: 0.0.0.0/0.0.0.0:6976 sent:598 recv:0

INFO server comment - RTPUDPTransport.unbind[bbvdoapps/_definst_]: 0.0.0.0/0.0.0.0:6977 sent:4 recv:0

INFO stream stop c1/1/iphone\_sample.mp4 -

INFO stream destroy c1/1/iphone\_sample.mp4 -

INFO rtsp disconnect 316413612 -

INFO rtsp connect 727524933 -

INFO stream create - -

INFO rtsp describe 727524933 -

INFO stream play c1/1/iphone\_sample.mp4 -

INFO rtsp play 727524933 -

INFO stream stop c1/1/iphone\_sample.mp4 -

INFO stream destroy c1/1/iphone\_sample.mp4 -

INFO rtsp disconnect 727524933 -

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [December 28, 2011, 4:03am UTC](https://community.wowza.com/t/problem-on-rtsp-authentication/35525/2 "2011-12-28T04:03:54Z")

</div>

What version of Wowza and VLC? Upgrading is always a good idea. Try playing the RTSP stream in VLC from a different computer.

I have tested this on Wowza 3.0.3.10 build995 with VLC 1.1.11 and it only asks for the password one time.

```auto
INFO rtsp connect 975027157 -
INFO stream create - -
INFO rtsp describe 975027157 -
INFO server comment - RTPUDPTransport.bind[live/_definst_]: in:0.0.0.0/0.0.0.0:6
970 out:/127.0.0.1:58550
INFO server comment - RTPUDPTransport.bind[live/_definst_]: in:0.0.0.0/0.0.0.0:6
971 out:/127.0.0.1:58551
INFO server comment - RTPUDPTransport.bind[live/_definst_]: in:0.0.0.0/0.0.0.0:6
972 out:/127.0.0.1:58558
INFO server comment - RTPUDPTransport.bind[live/_definst_]: in:0.0.0.0/0.0.0.0:6
973 out:/127.0.0.1:58559
INFO stream play myStream -
INFO rtsp play 975027157 -
INFO server comment - LiveStreamPacketizerSmoothStreaming.addFragment[live/_defi
nst_/myStream]: Add chunk: type:video id:9 count:30 duration:3675
INFO server comment - UDPTransport.firstPacket: bind:0.0.0.0/0.0.0.0:6971 msg:/1
27.0.0.1:58551
INFO server comment - UDPTransport.firstPacket: bind:0.0.0.0/0.0.0.0:6973 msg:/1
27.0.0.1:58559

```

Note: Haven’t tried it with MediaCache (yet).

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [December 29, 2011, 4:05pm UTC](https://community.wowza.com/t/problem-on-rtsp-authentication/35525/3 "2011-12-29T16:05:09Z")

</div>

VLC will failover to TCP if UDP is blocked. You can force it to use TCP initially:

[https://www.wowza.com/docs/how-to-configure-vlc-media-player-for-rtsp-rtp-playback-rtsp-rtp-interleaved-and-tuning](https://www.wowza.com/docs/how-to-configure-vlc-media-player-for-rtsp-rtp-playback-rtsp-rtp-interleaved-and-tuning)

Or you can unblock UDP ports (0-65535) possibly in your firewall, or other point in your network.

Richard

---

<div class="post-metadata">

**Author:** ![keith\_lai](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@keith\_lai](https://community.wowza.com/u/keith_lai)\
**Post date:** [December 28, 2011, 11:24pm UTC](https://community.wowza.com/t/problem-on-rtsp-authentication/35525/4 "2011-12-28T23:24:39Z")

</div>

my version is Wowza Media Server 3 Perpetual Edition 3.0.3 build882 and VLC is 1.1.11. also, wowza server and vlc are different computer

it is okay with

```auto
rtsp://username:password@ip:port/mediacache/_definst_/mp4:http/path1/filename.mp4

```

but still twice without username:password in URL.

the performance on video start time is degrading on the twice handshaking… ☹ need helps!

---

<div class="post-metadata">

**Author:** ![b09feb78dd1d38577911](https://avatars.discourse-cdn.com/v4/letter/b/8797f3/32.png) [@b09feb78dd1d38577911](https://community.wowza.com/u/b09feb78dd1d38577911)\
**Post date:** [July 19, 2023, 10:33am UTC](https://community.wowza.com/t/problem-on-rtsp-authentication/35525/5 "2023-07-19T10:33:51Z")

</div>

my rtsp url of camera is rtsp://admin:Ab12345@.+@182.191.69.152:555/Streaming/Channels/1 and i play the stream on vlc but wowza cant open the stream i dont understand why
