PDA

View Full Version : Slimserver ports and protocols



Anthony
2006-12-27, 08:51
Just a question regarding the networking of slimserver:

I found many threads that mention opening up ports 9000 and 3483 on UDP (datagrams) and TCP (packets).

What is the function of these ports, individually?

I guess I want to know so I keep the bare minimum open to the outside world (I'm also trying to debug a streaming problem -- stream connects to slimserver, but is empty).

Is 9000 used only for the web interface? Is 9000(TCP) web and 9000(UDP) for streaming? Is 3483 for any client or just the Squeezeboxes?

All information appreciated!
Anthony

Jacob Potter
2006-12-27, 16:05
On 12/27/06, Anthony
<Anthony.2jheln1167234901 (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
> Just a question regarding the networking of slimserver:
>
> I found many threads that mention opening up ports 9000 and 3483 on UDP
> (datagrams) and TCP (packets).
>
> What is the function of these ports, individually?
>
> I guess I want to know so I keep the bare minimum open to the outside
> world (I'm also trying to debug a streaming problem -- stream connects
> to slimserver, but is empty).
>
> Is 9000 used only for the web interface? Is 9000(TCP) web and
> 9000(UDP) for streaming? Is 3483 for any client or just the
> Squeezeboxes?
>
> All information appreciated!
> Anthony

9000 TCP is used for the Web interface and streaming to Squeezebox players.
9000 UDP is not used for anything.
3483 TCP is the control channel for Squeezeboxen (display, IR, etc.)
3483 UDP is used for SB->SlimServer discovery, and all control and
streaming to the old SLIMP3 players.

Hope that helps. :)

- Jacob

Anthony
2006-12-27, 17:48
Thanks. I think iTunes streams need the UDP 9000 Port because it didn't work until I opened that up on the router. It was weird because the stream would connect and I could get the server on a browser.

I uploaded a playlist, but the server would never "play". I'd click on it but it wouldn't register and of course, the player still didn't play anything even though it said "Welcome to SlimServer" and showed the song title that was cued up.

It almost seemed like a return communication from player to server wasn't getting through. I don't know why that would be a datagram, but it didn't work until the UDP port was opened.

Weird. I wonder if SoftSqueeze and the other players have this requirement.

snarlydwarf
2006-12-27, 17:51
It shouldnt need 9000/UDP at all: Slimserver isn't even listening on it.

bem@gimli:~$ netstat -a | grep 9000
tcp 0 0 *:9000 *:* LISTEN
tcp 0 0 192.168.2.101:9000 192.168.2.5:2779 ESTABLISHED
tcp 0 69444 192.168.2.101:9000 192.168.2.2:37567 ESTABLISHED
tcp 0 0 192.168.2.101:9000 192.168.2.5:2783 ESTABLISHED
tcp 0 0 192.168.2.101:9000 192.168.2.5:2782 ESTABLISHED

no udp at all.

Anthony
2006-12-27, 18:01
Interesting. I can't argue with the results, but I can't argue with the netstat output either. Huh.

I wonder if the problem is with my Dlink router. Maybe it's not truly passing 9000 TCP unless I tell it to pass both protocols. Or it lets smaller packet data through but is blocking packet streams (but how would it know the difference if it was all TCP).

Weird. I'll keep hacking away at it and see what I come up with.

Anthony
2006-12-27, 19:38
Well, I can't say I figured out what's going on, but it's working now (the way it should).

I moved the server protol off of 9000 since some remote admin service also uses it and seems to be the likely target of an attack. So with the new port, I methodically did the following:

Set new port in SlimServer.
Opened the port in the Linux firewall for TCP
Opened the port in the router for TCP

Now everything works! Go figure. Could have been the order I did things, could have been the fact my dynamic dns wasn't working last night, could have been a corrupt routing table that had stale information and didn't know the IP changes. Screwy though, and it works now, so no complaining.

Howeve I also got SoftSqueeze working and love it much better than any streaming application! Definitely getting a SB3/Transporter as soon as funds are available.

Thanks for all the help.