Go Back   Winamp Forums > SHOUTcast > SHOUTcast Technical Support

Reply
Thread Tools Search this Thread Display Modes
Old 31st July 2012, 08:53   #1
musicalbudgie
Junior Member
 
Join Date: Jul 2012
Posts: 3
Shoutcast stream asks for password to connect

I have a shoutcast stream running on a VPS that appears to be running and playing music from a playlist.

For some reason if I try to connect to the stream using VLC, it will ask me for a username and password for "realm (null)" (which I don't remember setting, I don't even know what they are meant to be). How can I set up shoutcast so that anyone can connect without having to log in? I wondered if it was something to do with the port, but running on port 80 had the same problem, which should always be open. Normally I have it run on port 8001.

I'm using Linux for both broadcasting and streaming with the Shoutcast tools.

Here is my conf file -

code:
; NOTE: for any relative paths specified are relative to
; sc_serv and not to where the conf file is being stored

; here we will setup where the log and other related files
; will be stored. make sure that these folders exist else
; sc_serv will throw an error and will close itself down.
; we will make the logs save to the sc_serv2 directory
logfile=logs/sc_serv.log
w3clog=logs/sc_w3c.log
banfile=control/sc_serv.ban
ripfile=control/sc_serv.rip


; for testing we will make the server only work locally
; (i.e. localhost / 127.0.0.1) though if this is left out
; or set to publicserver=always then we attempt to make a
; connection to the YP for listing - do not forget to add
; in a 'streamauthhash' value for any public streams made
publicserver=always


; if you're wanting to use a different port to use for any
; connections then you can use this option e.g. to use 80
; otherwise port 8000 is used as the default to listen on.
portbase=8001


; password used by sc_trans or the Winamp dsp plug-in
; NOTE: remember to change this to something else
password=mypass


; password used for accessing the administation pages
; NOTE: remember to change this to something else
adminpassword=otherpass


; now we will specify the details of the stream we're going
; to serve which can be done as follows
streamid=1
streampath=/moe.aac

; or

; it can be done like this which is how it needs to be done
; if you are going to provide multiple streams from sc_serv
;streamid_1=1
;streampath_1=/test.aac
;streamid_2=2
;streampath_2=/test2.aac

musicalbudgie is offline   Reply With Quote
Old 31st July 2012, 09:50   #2
jaromanda
Major Dude
 
jaromanda's Avatar
 
Join Date: Jun 2007
Location: NSW Australia
Posts: 1,655
What URL are you using in VLC to connect?

General Shoutcast troubleshooting guide
  1. Ask a teenager
That should do it
jaromanda is offline   Reply With Quote
Old 31st July 2012, 09:54   #3
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,234
it's because there isn't an authhash specified for the stream. http://wiki.winamp.com/wiki/SHOUTcas...ash_Management needs to be followed - as is referenced multiple times in the docs and there would by YP related errors in the log output as well as stream not available messages for when VLC tries to connect.

-daz
DrO is offline   Reply With Quote
Old 31st July 2012, 10:13   #4
jaromanda
Major Dude
 
jaromanda's Avatar
 
Join Date: Jun 2007
Location: NSW Australia
Posts: 1,655
lol ... missed that ... it even mentions the authhash in the config posted!!!

General Shoutcast troubleshooting guide
  1. Ask a teenager
That should do it
jaromanda is offline   Reply With Quote
Old 31st July 2012, 10:36   #5
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,234
if VLC is throwing the login prompt, it's either the stream is not active or it's not configured correctly. as VLC will then treat it like a secure login is needed to access the stream (which makes sense, but no one seems to bother to search for such things *shrugs* ). will just have to make sure i add an extra help section to the authhash docs for no one to read

-daz
DrO is offline   Reply With Quote
Old 31st July 2012, 11:34   #6
musicalbudgie
Junior Member
 
Join Date: Jul 2012
Posts: 3
Fair enough, I had skimmed over the autohash comment in the conf file as an extra security measure only needed for the stream to be listed in the shoutcast listings. Bear in mind I did this once a few years ago and was operating a little from memory, so I've missed things in the more up to date versions.

I have set publicserver to streamauthhash and followed the instructions on the wiki you linked, but I'm stuck at the first step. Although the stream is displayed on the summary page, there is no link that I can find to "Create Authhash". All I can see is this -



Clicking on Admin Login has no such link either, but it does show stream information.

Quote:
if VLC is throwing the login prompt, it's either the stream is not active or it's not configured correctly. as VLC will then treat it like a secure login is needed to access the stream (which makes sense, but no one seems to bother to search for such things *shrugs* ).
Yes, that is what I gathered from Google searches, but I couldn't understand why VLC would think the stream didn't exist when the command line output of sc_serv seemed to suggest everything was fine.
musicalbudgie is offline   Reply With Quote
Old 31st July 2012, 11:44   #7
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,234
Quote:
Originally Posted by musicalbudgie View Post
autohash
why are people calling it that when it's authhash ?

Quote:
Originally Posted by musicalbudgie View Post
I have set publicserver to streamauthhash and followed the instructions on the wiki you linked, but I'm stuck at the first step. Although the stream is displayed on the summary page, there is no link that I can find to "Create Authhash".
you're not clicking on the correct link. the one you want is in the top right as per http://wiki.winamp.com/wiki/Image:Summary.png (the link pointed to by the red arrrow) - the docs explicitly says to use 'adminstrator login' and not 'admin login'. (this now makes me fear that changing it to be called 'server login' and placed on all public pages is still going to cause this issue ).

-daz
DrO is offline   Reply With Quote
Old 31st July 2012, 11:56   #8
musicalbudgie
Junior Member
 
Join Date: Jul 2012
Posts: 3
Quote:
why are people calling it that when it's authhash ?
Doh.


Anyway, it works, I was missing that link. Thanks for the help.
musicalbudgie is offline   Reply With Quote
Reply
Go Back   Winamp Forums > SHOUTcast > SHOUTcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump