Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've got a problem trying to get any media player (StreamTuner, xmms, etc) trying to connect to any radio station.
I rebooted on my XP partition to test it and it works just fine from Winamp.
what makes me think it's a networking problem is that I also happen bo be hosting my own radio station here on my FC2 box, but when I try and connect to 127.0.0.1:8000 to listen to people who are connected to me and streaming, I get:
<10/25/05@22:19:37> [dest: 127.0.0.1] Invalid resource request(127.0.0.1:8000/)
that's what I get in the log of the ShoutCast Server.
As far as xmms is concerned, I just get an error msg saying:
"Couldn;t connect to host Localhost
Server reported: 404 Resource Not Found"
if I telnet into it, it says:
[root@localhost root]# telnet 127.0.0.1:8000
127.0.0.1:8000/telnet: Name or service not known
But I know the port it running cos people fromn the outside world can connect to that port on my Shoutcast server and listen to the tunes streaming from it.
I get the same problem even if I completely disable my internal firewall withsomething like GuardDog.
And I dont believe it's a problem at my ADSL Router level cos as I said it works just fine from windows/winamp.
Originally posted by Scoobsky if I telnet into it, it says:
[root@localhost root]# telnet 127.0.0.1:8000
127.0.0.1:8000/telnet: Name or service not known
But I know the port it running cos people fromn the outside world can connect to that port on my Shoutcast server and listen to the tunes streaming from it.
You have to give two arguments to telnet, i.e.,
Code:
telnet 127.0.0.1 8000
By the way, it's not necessary to do this as root, so I wouldn't -- no difference here, just a general rule of caution.
Maybe your server is only listening on the external interface, where your listeners connect, and not on the loopback (localhost, aka 127.0.0.1). To check that out, see what's listening on port 8000:
Code:
/usr/sbin/lsof -i :8000
(This has to be done as root.) You should get a line saying, in the NAME column,
*:8000 (LISTEN)
or interface:8000 (LISTEN)
If you get an asterisk, it's listening on all available interfaces. In the latter case, which I suspect, only on the specified interface.
Anyway, why not refer to your station as your listeners do, i.e., by its hostname instead of "localhost"?
I did as you suggested the lsof command and it returned this:
[root@localhost root]# lsof -i :8000
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
sc_serv 3495 root 5u IPv4 6190 TCP *:8000 (LISTEN)
so as you suggested it's listening on all devices... which I suspect is a good thing right?
The telnet thing work.. thanks for that :-)
as for connecting to localhost vs hostname, I tired that too.. and I get the same problem... and it's not just trying to connect to my own station but I get the same thing trying to connect to any station out there on the Net.
I can play MP3s fine, either from xmms or streamtuner... so I dont believe it's an xmms config issue... the fact that it can't connect to *any* station at all... and the fact that it works just fine under windows/winamp, makes me think it's an internal linux networking issue.. but again.. I could be wrong...
could you or anyone else suggest something else to try or check?
Yes, the output from lsof looks fine, your sc_serv is listening on all interfaces. So naming the station localhost:8000 shouldn't cause any problem.
Sorry, I don't know xmms at all. You might strace it; that could tell you what it's doing (in terms of system calls). But it probably won't give much of a hint about how to make it work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.