Old 25th August 2011, 00:23   #1
idobi
Senior Member
 
idobi's Avatar
 
Join Date: Feb 2003
Location: Washington DC
Posts: 119
Send a message via AIM to idobi
YP tries connecting on the wrong IP

I have multiple IP address on my machine - the primary one being:
76.73.94.82

I have shoutcast running on 76.73.94.84

srcip=76.73.94.84
dstip=76.73.94.84

However, I get YP error trying to connect on the wrong IP address

msg:[YP2] Connection attempt failed. YP2 error code is 480 (Cannot see your station/computer (URL: http://76.73.94.82:8000/stream/1/)

I'm running DNAS build 29

idobi Network - http://idobi.com/
idobi Radio - http://idobiradio.com/
idobi App now available for iOS, Android and Windows Phone (http://idobi.com/app/)
idobi is offline   Reply With Quote
Old 25th August 2011, 00:26   #2
idobi
Senior Member
 
idobi's Avatar
 
Join Date: Feb 2003
Location: Washington DC
Posts: 119
Send a message via AIM to idobi
Also, is it true that you can't connect as a listener if YP has an error? This seems like a bad idea all around. It makes the server too dependent on YP being up, and we know that's never an issue...

Unless I set the server to private, I get:
SHOUTcast 1 client connection rejected. Stream not available.

idobi Network - http://idobi.com/
idobi Radio - http://idobiradio.com/
idobi App now available for iOS, Android and Windows Phone (http://idobi.com/app/)
idobi is offline   Reply With Quote
Old 25th August 2011, 01:22   #3
idobi
Senior Member
 
idobi's Avatar
 
Join Date: Feb 2003
Location: Washington DC
Posts: 119
Send a message via AIM to idobi
2011-08-24 21:19:00 I msg:<***> Logger startup
2011-08-24 21:19:00 I msg:<***> version 2.0.0.29
2011-08-24 21:19:00 D msg:<***>
2011-08-24 21:19:00 I msg:***************************************************************
2011-08-24 21:19:00 I msg:** SHOUTcast Distributed Network Audio Server (DNAS)
2011-08-24 21:19:00 I msg:** Copyright (C) 1999-2011 Nullsoft, Inc. All Rights Reserved.
2011-08-24 21:19:00 I msg:** Use "sc_serv filename.conf" to specify a config file.
2011-08-24 21:19:00 I msg:***************************************************************
2011-08-24 21:19:00 I msg:[SHOUTcast] DNAS/posix(linux x64) v2.0.0.29 (Jul 31 2011) starting up...
2011-08-24 21:19:00 I msg:[MAIN] PID: 2448
2011-08-24 21:19:00 I msg:[MAIN] Loaded config from sc_serv_public.conf
2011-08-24 21:19:00 I msg:[MAIN] Calculated CPU count is 6
2011-08-24 21:19:00 I msg:[MAIN] Starting 6 network threads
2011-08-24 21:19:00 I msg:[MICROSERVER] Listening for connection on port 8000
2011-08-24 21:19:00 I msg:[MICROSERVER] Listening for connection on port 8001
2011-08-24 21:19:03 I msg:[SRC 76.73.94.84:59816] SHOUTcast 2 source connection.
2011-08-24 21:19:03 I msg:[SRC 76.73.94.84:59816] Password accepted. Stream id is 1
2011-08-24 21:19:03 I msg:[SRC 76.73.94.84:59816 sid=1] stream configuration complete. [
type=SHOUTcast 2
mimeType=audio/mpeg
maxPayloadSize=16377
avgBitrate=128000
maxBitrate=128000
desiredBufferSize=320
minimumBufferSize=0
icyName=idobi Radio: New. Music. Unfiltered. idobi.com
icyGenre=Alternative, Pop, Rock
icyURL=http://idobi.com
icyPub=0
]
2011-08-24 21:19:03 I msg:[YP2] Connecting to yp.shoutcast.com
2011-08-24 21:19:04 E msg:[YP2] /yp/resp/updatefreq missing
2011-08-24 21:19:04 E msg:[YP2] Connection attempt failed. YP2 error code is 480 (Cannot see your station/computer (URL: http://76.73.94.82:8000/stream/1/) from the Internet, disable Internet Sharing/NAT/firewall/ISP cache.)

idobi Network - http://idobi.com/
idobi Radio - http://idobiradio.com/
idobi App now available for iOS, Android and Windows Phone (http://idobi.com/app/)
idobi is offline   Reply With Quote
Old 25th August 2011, 08:55   #4
DrO
 
Join Date: Sep 2003
Posts: 27,873
Quote:
Originally Posted by idobi View Post
However, I get YP error trying to connect on the wrong IP address

msg:[YP2] Connection attempt failed. YP2 error code is 480 (Cannot see your station/computer (URL: http://76.73.94.82:8000/stream/1/)
I thought we'd covered this in an older thread during the v2 DNAS beta phase. as such things have not changed and it is still noted as a known issue that the YP will use the IP of the connection making the YP request and not what is meant to be the destination for the DNAS as per config values.

i have a planned implementation which will allow things to work as expected, it's just one of many things that i'm trying to work on currently and will require changes being made to the YP and also the DNAS to allow it to work. so it's not been forgotten about, but i'm not sure when it's going to be completed i.e. if the DNAS changes will make it into the upcoming update or if it will have to wait for the next build after that.

Quote:
Originally Posted by idobi View Post
Also, is it true that you can't connect as a listener if YP has an error? This seems like a bad idea all around. It makes the server too dependent on YP being up, and we know that's never an issue...
That is true, if there's no valid YP connection then it won't allow clients to connect. It does actually make sense since if you're wanting the DNAS to be public, then it needs to be recognised as being public and if that isn't the case then we're looking at an invalid situation and so allowing clients to connect isn't a good idea.

Obviously i see where you (and other people) are coming from when querying this, but being public requires everything to do with YP usage to be valid especially with the station being reported and seen to be there.

As for the last part of the final sentence quoted, issues with the YP are being worked on and there's already a number of fixes pending / already deployed which improve issues that v2 connections have had (though the current issues with the site listings not updating is unfortunate timing and has been causing the odd YP failures whilst things are being checked, restarted, etc).

-daz
DrO is offline   Reply With Quote
Old 25th August 2011, 11:13   #5
idobi
Senior Member
 
idobi's Avatar
 
Join Date: Feb 2003
Location: Washington DC
Posts: 119
Send a message via AIM to idobi
I suppose my concern with the YP is more of what happens if the connection to YP fails after the server has been up for awhile - is it going to stop allowing subsequent listener connections.

That's one of the current problems with sc_serv v1 - a failed YP connection means a full server stops redirecting and just drops new listeners. The DNAS should be able to distinguish between a periodic failed connection to the YP - ie. valid for x hours - instead of just saying, "sorry, can't find YP so i'm just going to stop working".

idobi Network - http://idobi.com/
idobi Radio - http://idobiradio.com/
idobi App now available for iOS, Android and Windows Phone (http://idobi.com/app/)
idobi is offline   Reply With Quote
Old 25th August 2011, 11:52   #6
DrO
 
Join Date: Sep 2003
Posts: 27,873
ok, with that scenario (which i've still to properly test out - something that was only raised to my attention recently), as long as the YP connection worked to start with then it _should_ keep allowing clients to connect even if there is a YP issue with the updates done afterwards and should keep doing so until the remove command is sent (from a DNAS shutdown or the source disconnects, etc).

i'm going to have to check that out (along with everything else) though that's how it looks from a quick peek at the source code. with the v1 mode, i don't think there's much point in me even trying to replicate that as main focus is on the v2 platform now and sounds like that's how it's always been (which seems to match up with the yp1 handling source code).

-daz
DrO is offline   Reply With Quote
Old 25th August 2011, 16:27   #7
DrO
 
Join Date: Sep 2003
Posts: 27,873
Quote:
Originally Posted by DrO View Post
i have a planned implementation which will allow things to work as expected, it's just one of many things that i'm trying to work on currently and will require changes being made to the YP and also the DNAS to allow it to work. so it's not been forgotten about, but i'm not sure when it's going to be completed i.e. if the DNAS changes will make it into the upcoming update or if it will have to wait for the next build after that.
now that things with the YP are sort of working, i thought i'd give this a quick go to see if my plan would work and it will in combination with the YP update that was already planned (though it may require some manipulation of any authhash's created if wanting to edit them later on due to the IP locking that happens on initial creation of them).

the key aspect will be the new DNAS - i can provide you an internal version to try out after the YP updates are rolled out if you would like to make sure it does work as you'd expect it to work before going public.

-daz
DrO is offline   Reply With Quote
Old 26th August 2011, 12:02   #8
idobi
Senior Member
 
idobi's Avatar
 
Join Date: Feb 2003
Location: Washington DC
Posts: 119
Send a message via AIM to idobi
I wasn't expecting any changes to v1 - just presenting an issue I hope doesn't persist with v2.

I'd be happy to test out the server for you.

idobi Network - http://idobi.com/
idobi Radio - http://idobiradio.com/
idobi App now available for iOS, Android and Windows Phone (http://idobi.com/app/)
idobi is offline   Reply With Quote
Old 26th August 2011, 12:05   #9
DrO
 
Join Date: Sep 2003
Posts: 27,873
from what i saw after the fun of last night, it doesn't look like the v2 will drop client connections once a YP connection is established - nothing like a broken system to test against.

as a result of things, the newer YP which had some of the changes is running, so once things stabilise then will get a test build over to you.

-daz
DrO is offline   Reply With Quote
Old 26th August 2011, 15:37   #10
idobi
Senior Member
 
idobi's Avatar
 
Join Date: Feb 2003
Location: Washington DC
Posts: 119
Send a message via AIM to idobi
Don't think of it as a broken YP - Think of it as a testing opportunity...

idobi Network - http://idobi.com/
idobi Radio - http://idobiradio.com/
idobi App now available for iOS, Android and Windows Phone (http://idobi.com/app/)
idobi is offline   Reply With Quote
Old 26th August 2011, 15:39   #11
DrO
 
Join Date: Sep 2003
Posts: 27,873
aye something like that

-daz
DrO is offline   Reply With Quote
Old 20th September 2011, 14:19   #12
DrO
 
Join Date: Sep 2003
Posts: 27,873
pm sent with a link to a test build to try out

-daz
DrO is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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