Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can't connect to my own stream

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
Malvenue



Joined: 30 May 2008
Posts: 2

PostPosted: Sat May 31, 2008 1:10 am    Post subject: Can't connect to my own stream Reply with quote

I set up the window client for Icecast Server Icecast W32 2.3.1 and am streaming to it with an EZstream batch file that's worked fine with another server. That server shut down so now I'm trying to set up a new one. The EZstream connects just fine and starts feeding the MP3 unconverted stream but I simply cannot connect to the server on my local PC.

I tried connecting via IE, I tried via WMP (which works with other streams, I tested it) and I tried with WinAMP. I invariably get an error that the file can't be read or it can't be found. I have tried opening http://localhost:8000, localhost:8000/RaidMusic, localhost:8000/Raidmusic.mp3, localhost:8000/RaidMusic.m3u. The web access had a "Listen" link of http://localhost:8000/.m3u which I thought was strange.

I tried setting a mount point but the only difference was I'd get a prompt for username/password which never authenticated, despite my using the ones I specified in the <mount> part of the configuration file.

Please help me out here. I am posting my configuration, and my two logs (obviously the passwords have been changed to protect the innocent). I would really appreciate it if someone could just point me in the right direction. I don't want to do anything fancy other than put up an icecast server my friends can connect to and listen.

<!-- This config file contains a minimal set of configurable parameters,
and mostly just contains the things you need to change. We created
this for those who got scared away from the rather large and heavily
commented icecast.xml.dist file. -->
<icecast>
<limits>
<sources>2</sources>
</limits>
<authentication>
<source-password>pwgoeshere</source-password>
<relay-password>pwgoeshere</relay-password>
<admin-user>admin</admin-user>
<admin-password>adminpwgoeshere</admin-password>
</authentication>
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
</directory>
<hostname>localhost</hostname>
<listen-socket>
<port>8000</port>
</listen-socket>
<fileserve>1</fileserve>
<paths>
<logdir>./logs</logdir>
<webroot>./web</webroot>
<adminroot>./admin</adminroot>
<alias source="/" dest="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
</logging>
</icecast>

Access.log:
127.0.0.1 - - [30/May/2008:18:57:20 -0400] "GET /.m3u HTTP/1.1" 200 74 "http://localhost:8000/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)" 0
127.0.0.1 - - [30/May/2008:18:57:21 -0400] "GET / HTTP/1.1" 200 2394 "-" "NSPlayer/11.0.5721.5145 WMFSDK/11.0" 1
127.0.0.1 - - [30/May/2008:18:57:21 -0400] "GET / HTTP/1.1" 200 2394 "-" "Windows-Media-Player/11.0.5721.5230" 0
127.0.0.1 - - [30/May/2008:18:57:29 -0400] "GET / HTTP/1.1" 200 2394 "-" "NSPlayer/11.0.5721.5145 WMFSDK/11.0" 0
127.0.0.1 - - [30/May/2008:18:57:29 -0400] "GET / HTTP/1.1" 200 2394 "-" "Windows-Media-Player/11.0.5721.5230" 0
127.0.0.1 - - [30/May/2008:18:57:36 -0400] "SOURCE / HTTP/1.0" 200 19 "-" "libshout/2.0.0" 30

Error.log:
[2008-05-30 18:57:05] INFO main/main.c Icecast 2.3.1 server started
[2008-05-30 18:57:05] DBUG yp/yp.c Updating YP configuration
[2008-05-30 18:57:05] INFO yp/yp.c Adding new YP server "http://dir.xiph.org/cgi-bin/yp-cgi" (timeout 15s, default interval 30s)
[2008-05-30 18:57:05] INFO yp/yp.c YP update thread started
[2008-05-30 18:57:05] INFO auth/auth.c Authentication thread started
[2008-05-30 18:57:05] DBUG yp/yp.c Add pending yps http://dir.xiph.org/cgi-bin/yp-cgi
[2008-05-30 18:57:06] DBUG slave/slave.c checking master stream list
[2008-05-30 18:57:06] INFO connection/connection.c Source logging in at mountpoint "/"
[2008-05-30 18:57:06] DBUG connection/connection.c sources count is 0
[2008-05-30 18:57:06] DBUG source/source.c Applying mount information for "/"
[2008-05-30 18:57:06] DBUG format-mp3/format_mp3.c mp3 interval -1
[2008-05-30 18:57:06] DBUG source/source.c public set to 0
[2008-05-30 18:57:06] DBUG source/source.c max listeners to -1
[2008-05-30 18:57:06] DBUG source/source.c queue size to 512000
[2008-05-30 18:57:06] DBUG source/source.c burst size to 65536
[2008-05-30 18:57:06] DBUG source/source.c source timeout to 10
[2008-05-30 18:57:06] DBUG source/source.c fallback_when_full to 0
[2008-05-30 18:57:06] DBUG connection/connection.c source is ready to start
[2008-05-30 18:57:06] DBUG fserve/fserve.c Adding client to file serving engine
[2008-05-30 18:57:06] DBUG source/source.c Source creation complete
[2008-05-30 18:57:06] DBUG stats/stats.c update node clients (1)
[2008-05-30 18:57:06] DBUG stats/stats.c update node connections (1)
[2008-05-30 18:57:06] DBUG stats/stats.c update node sources (1)
[2008-05-30 18:57:06] DBUG stats/stats.c new source stat /
[2008-05-30 18:57:06] DBUG stats/stats.c new node public (0)
[2008-05-30 18:57:06] DBUG stats/stats.c new node server_name (Malvenue's Raid Music)
[2008-05-30 18:57:06] DBUG stats/stats.c new node server_description (Selected Raiding Music)
[2008-05-30 18:57:06] DBUG stats/stats.c new node server_url (http://localhost)
[2008-05-30 18:57:06] DBUG stats/stats.c new node genre (RockNRoll)
[2008-05-30 18:57:06] DBUG stats/stats.c new node server_type (audio/mpeg)
[2008-05-30 18:57:06] DBUG stats/stats.c new node max_listeners (unlimited)
[2008-05-30 18:57:06] DBUG stats/stats.c new node source_ip (127.0.0.1)
[2008-05-30 18:57:06] DBUG stats/stats.c new node user_agent (libshout/2.0.0)
[2008-05-30 18:57:06] DBUG stats/stats.c update node source_client_connections (1)
[2008-05-30 18:57:06] DBUG stats/stats.c new node listeners (0)
[2008-05-30 18:57:06] DBUG stats/stats.c new node bitrate (128)
[2008-05-30 18:57:06] DBUG stats/stats.c new node channels (2)
[2008-05-30 18:57:06] DBUG stats/stats.c new node samplerate (44100)
[2008-05-30 18:57:06] DBUG stats/stats.c new node audio_info (bitrate=128;channels=2;samplerate=44100)
[2008-05-30 18:57:06] DBUG stats/stats.c new node listenurl (http://localhost:8000/)
[2008-05-30 18:57:06] DBUG stats/stats.c update node source_total_connections (1)
[2008-05-30 18:57:06] DBUG stats/stats.c new node slow_listeners (0)
[2008-05-30 18:57:06] DBUG stats/stats.c update node listeners (0)
[2008-05-30 18:57:06] DBUG stats/stats.c new node listener_peak (0)
[2008-05-30 18:57:06] DBUG stats/stats.c new node stream_start (Fri, 30 May 2008 18:57:06 Eastern Daylight Time)
[2008-05-30 18:57:07] DBUG stats/stats.c new node total_bytes_read (0)
[2008-05-30 18:57:07] DBUG stats/stats.c new node total_bytes_sent (0)
[2008-05-30 18:57:11] DBUG stats/stats.c update node total_bytes_read (67584)
[2008-05-30 18:57:11] DBUG stats/stats.c update node total_bytes_sent (0)
[2008-05-30 18:57:16] DBUG stats/stats.c update node total_bytes_read (149504)
[2008-05-30 18:57:16] DBUG stats/stats.c update node total_bytes_sent (0)
[2008-05-30 18:57:20] INFO fserve/fserve.c checking for file /.m3u (./web/.m3u)
[2008-05-30 18:57:20] DBUG fserve/fserve.c Adding client to file serving engine
[2008-05-30 18:57:20] DBUG stats/stats.c update node clients (2)
[2008-05-30 18:57:20] DBUG stats/stats.c update node connections (2)
[2008-05-30 18:57:20] DBUG stats/stats.c update node client_connections (1)
[2008-05-30 18:57:20] DBUG stats/stats.c update node clients (1)
[2008-05-30 18:57:20] DBUG stats/stats.c update node clients (2)
[2008-05-30 18:57:20] DBUG stats/stats.c update node connections (3)
[2008-05-30 18:57:21] DBUG connection/connection.c alias has made / into /status.xsl
[2008-05-30 18:57:21] DBUG connection/connection.c Stats request, sending XSL transformed stats
[2008-05-30 18:57:21] DBUG fserve/fserve.c Adding client to file serving engine
[2008-05-30 18:57:21] DBUG stats/stats.c update node client_connections (2)
[2008-05-30 18:57:21] DBUG stats/stats.c update node total_bytes_read (228200)
[2008-05-30 18:57:21] DBUG stats/stats.c update node total_bytes_sent (0)
[2008-05-30 18:57:21] DBUG stats/stats.c update node clients (1)
[2008-05-30 18:57:21] DBUG stats/stats.c update node clients (2)
[2008-05-30 18:57:21] DBUG stats/stats.c update node connections (4)
[2008-05-30 18:57:21] DBUG connection/connection.c alias has made / into /status.xsl
[2008-05-30 18:57:21] DBUG connection/connection.c Stats request, sending XSL transformed stats
[2008-05-30 18:57:21] DBUG xslt/xslt.c Using cached sheet 2
[2008-05-30 18:57:21] DBUG fserve/fserve.c Adding client to file serving engine
[2008-05-30 18:57:21] DBUG stats/stats.c update node client_connections (3)
[2008-05-30 18:57:21] DBUG stats/stats.c update node clients (1)
[2008-05-30 18:57:26] DBUG stats/stats.c update node total_bytes_read (309400)
[2008-05-30 18:57:26] DBUG stats/stats.c update node total_bytes_sent (0)
[2008-05-30 18:57:29] DBUG connection/connection.c alias has made / into /status.xsl
[2008-05-30 18:57:29] DBUG connection/connection.c Stats request, sending XSL transformed stats
[2008-05-30 18:57:29] DBUG xslt/xslt.c Using cached sheet 2
[2008-05-30 18:57:29] DBUG fserve/fserve.c Adding client to file serving engine
[2008-05-30 18:57:29] DBUG stats/stats.c update node clients (2)
[2008-05-30 18:57:29] DBUG stats/stats.c update node connections (5)
[2008-05-30 18:57:29] DBUG stats/stats.c update node client_connections (4)
[2008-05-30 18:57:29] DBUG connection/connection.c alias has made / into /status.xsl
[2008-05-30 18:57:29] DBUG connection/connection.c Stats request, sending XSL transformed stats
[2008-05-30 18:57:29] DBUG xslt/xslt.c Using cached sheet 2
[2008-05-30 18:57:29] DBUG fserve/fserve.c Adding client to file serving engine
[2008-05-30 18:57:29] DBUG stats/stats.c update node clients (1)
[2008-05-30 18:57:29] DBUG stats/stats.c update node clients (2)
[2008-05-30 18:57:29] DBUG stats/stats.c update node connections (6)
[2008-05-30 18:57:29] DBUG stats/stats.c update node client_connections (5)
[2008-05-30 18:57:29] DBUG stats/stats.c update node clients (1)
[2008-05-30 18:57:31] DBUG stats/stats.c update node total_bytes_read (387072)
[2008-05-30 18:57:31] DBUG stats/stats.c update node total_bytes_sent (0)
[2008-05-30 18:57:36] DBUG connection/connection.c Connection thread done
[2008-05-30 18:57:36] DBUG stats/stats.c update node total_bytes_read (468992)
[2008-05-30 18:57:36] DBUG stats/stats.c update node total_bytes_sent (0)
[2008-05-30 18:57:36] INFO source/source.c Source "/" exiting
[2008-05-30 18:57:36] DBUG source/source.c clearing source "/"
[2008-05-30 18:57:36] INFO main/main.c Shutting down
[2008-05-30 18:57:36] DBUG source/source.c freeing source "/"
[2008-05-30 18:57:36] INFO fserve/fserve.c file serving thread stopped
[2008-05-30 18:57:36] DBUG slave/slave.c waiting for slave thread
[2008-05-30 18:57:36] DBUG stats/stats.c delete source node /
[2008-05-30 18:57:36] DBUG stats/stats.c update node clients (0)
[2008-05-30 18:57:36] DBUG stats/stats.c update node sources (0)
[2008-05-30 18:57:37] DBUG slave/slave.c shutting down current relays
[2008-05-30 18:57:37] INFO slave/slave.c Slave thread shutdown complete
[2008-05-30 18:57:37] INFO auth/auth.c Authenication thread shutting down
[2008-05-30 18:57:37] INFO auth/auth.c Auth thread has terminated
[2008-05-30 18:57:37] DBUG yp/yp.c Removing YP server entry for http://dir.xiph.org/cgi-bin/yp-cgi
[2008-05-30 18:57:37] INFO yp/yp.c YP thread down
[2008-05-30 18:57:37] INFO stats/stats.c stats thread finished

The EZstream XML file is:

<!--
EXAMPLE: MP3 playlist stream WITHOUT reencoding

This example streams a playlist that contains only MP3 files. No other file
formats may be listed. Since ezstream will not be doing any reencoding, the
resulting stream format (bitrate, samplerate, channels) will be of the
respective input files.
-->
<ezstream>
<url>http://localhost:8000/</url>
<sourcepassword>pwgoeshere</sourcepassword>
<format>MP3</format>
<filename>RaidMusic.m3u</filename>
<!-- Once done streaming playlist.m3u, exit: -->
<stream_once>1</stream_once>
<!--
The following settings are used to describe your stream to the server.
It's up to you to make sure that the bitrate/samplerate/channels
information matches up with your input stream files. Note that
<svrinfoquality /> only applies to Ogg Vorbis streams.
-->
<svrinfoname>Malvenue's Raid Music</svrinfoname>
<svrinfourl>http://localhost</svrinfourl>
<svrinfogenre>RockNRoll</svrinfogenre>
<svrinfodescription>Selected Raiding Music</svrinfodescription>
<svrinfobitrate>128</svrinfobitrate>
<svrinfochannels>2</svrinfochannels>
<svrinfosamplerate>44100</svrinfosamplerate>
<!--
Prohibit the server to advertise the stream on a public YP directory:
-->
<svrinfopublic>0</svrinfopublic>
</ezstream>
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat May 31, 2008 1:54 am    Post subject: Reply with quote

You are streaming on a mountpoint of / but you have an alias which maps listeners requests of / to /status.xsl so listeners get a a web page when they request the stream.

Either use a different mountpoint eg /stream or remove the alias definition.

Also, if you really want to list on the directory server then don't use a <hostname> of localhost, try using a real IP or DNS address that listeners can use.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Malvenue



Joined: 30 May 2008
Posts: 2

PostPosted: Sat May 31, 2008 2:23 am    Post subject: Reply with quote

Yup that seems to have fixed it, thanks.

I took the example files and simply changed the passwords. I don't know why the file has an alias statement in it unless I uncommented something I shouldn't have.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat May 31, 2008 12:45 pm    Post subject: Reply with quote

The examples have an alias by default so that web browsers see something which is good as a test to see if the server is accessible. The / mountpoint is not very helpful as a default but you have that option.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber