PDA

View Full Version : remote streaming



Shredder
2008-05-15, 07:41
I should know how to do this, but cannot figure it out. I would love to stream my music collection from my Thecus 5200 NAS (located in my house) to my computer at work. How is that accomplished?

Also, I would love to be able to stream to an iPhone. Is that possible and if so, how?

ANy assisatance will be greatly appreciated. Thanks.

Sike
2008-05-15, 08:58
Hi Shredder

I assume you want to use Squeezecenter.

You can stream to any "streamable" device by connecting to the http://localhost:9000/stream.mp3

If you want softsqueeze or the stream to work at the office, you either need to set up a VPN or SSH tunnel. You can look around the forums for various solutions.

I do it by setting up firewall rules on my home router. My IP hardly ever changes and I even have a couple of SB3s scattered around holiday homes and office and can use them from my central Squeezecenter.

Sike
2008-05-15, 08:59
One last thing. If you have an iPhone take a look at iPeng!

Shredder
2008-05-15, 09:06
What is a VPN or SSH tunnel?

Sike
2008-05-15, 09:11
What is a VPN or SSH tunnel?

You can create a secure channel through the internet. Mostly used for companies with multiple locations. You can connect 2 offices (or many more) together through the internet without having to worry about people getting in.

http://en.wikipedia.org/wiki/Vpn

There are some guides on here with programs i have never used. Try a search.

pski
2008-05-15, 09:57
I should know how to do this, but cannot figure it out. I would love to stream my music collection from my Thecus 5200 NAS (located in my house) to my computer at work. How is that accomplished?

Also, I would love to be able to stream to an iPhone. Is that possible and if so, how?

ANy assisatance will be greatly appreciated. Thanks.

General steps.. assuming you have a cable/adsl connection (and winders) and that your SC machine is connected to the cable/dsl box WITHOUT a router/wireless access point in-between...

Most cable setups give you a "static" (unchanging IP address) and many phone companies DSL automatically give you a "static" address when you have higher speeds.

1. at the home computer, open a browser and go to www.whatismyip.com. Write down this "external IP address." Keep in mind that if you do NOT have a "static" address, this could change from time-to-time.

2. open a command window and type
ipconfig <enter>
write down the IP address and the default gateway (assuming you are on the machine running SC.)

3. in a browser window key http://default gateway address <enter>
Mine is
http://192.168.0.111
This should display the configuration screen for your cable/dsl modem. This is the tricky part because there are so many different models. I've used Netopia and Westell (ATT) modems so I'll give you them as an example..

4. You will be looking for NAT setup. In my modems you go to expert mode/configure/NAT.

BACKGROUND: what we want to do is to tell the modem that when it sees business from the "outside" world (internet/work) on a particular PORT number, forward that traffic to the SC machine. There are two ports involved, TCP 9000 and TCP 3483. "Default" behavior for these modems is to reject ANY inbound traffic from the internet that hasn't been requested by a computer on the "inside". This is a good thing, preventing the outside world from seeing the network in your home.

In my netopia, I have to "define" a service (as port forwarding, range of ports) from ports 9000 through 9000 to base port 9000. Then I do the same for port 3483.

When I tell the modem to "enable" these services, it asks which computer address I want them to be sent to. Here you enter the IP address from the ipconfig screen (the address of the machine that is running SC.) Some modems may let you fill this info into a form rather than having a two-step process and some modems will show the names of the machines in addition to IP addresses when you select the target.

5. go here http://www.rarewares.org/mp3-lame-bundle.php and download lame. This is the code that will compress your music on-the-fly as you play it remotely. Put LAME.EXE in
C:\program files\squeezecenter\server\bin\mswin32-x86-multi-thread
You don't need the .DLL version. You'll know it's the right place because it will have alac.exe, flac.exe, sox.exe, etc.

6. go to the outside world and open a browser, keying the address:

http://<whatismyip>:9000
where <whatismyip> is the "external IP address" from the earlier step.

The http:// is very important if you are using a newer version of Internet Explorer because they don't make a guess about which protocol to use on non-standard ports (like 9000)

If everything has been done right, you should see SC. If you don't, it's possible that port 9000 is blocked by your IT people. Tough luck. Try again from a public WiFi to see if you've got the configuration right.

7. go to extras and install SoftSqueeze.

8. things may be ok at this point, but I would rename the SoftSqueeze player and change it's Audio settings to about 128K. The Lame quality setting you use depends on how fast your SC machine is ...

9. advanced diddling: run SoftSqueeze. open SC, select the SoftSqueeze player and go to HELP/Server and Network Health. Pick a speed and the results will be shown on the SoftSqueeze display and in SC. This is testing the outbound speed of your home broadband connection.

If you have a very fast connection at home, you can push this up but REMEMBER... you'll also be sucking bandwidth from your employer's inbound connection so it might be better to be reasonable (and not attract attention...)

10. investigate the security settings in SC. If you have a Duet setup, you won't be able to use user/password security. There are other threads on the "allow from" security option.

Shredder
2008-05-15, 10:34
PSKI-awesome instructions. That is exactly what I needed. Thanks much.

Mnyb
2008-05-15, 11:20
If you do have a router, don't forget to port forward the same ports as usual , the ones you had to open in your firewall to get SC to work at home.

If you don't have an fixed IP you can use some kind of Dynamic DNS service, either from the router or PC (whatever fits you setup).
You migth have to restart Softsqueeze while your server is shifting IP.

And password protection IS working with the duet now.

A nice extra is Wake On Lan over internet, so that you can boot the music server from the internet. but this is highly dependent on the hardware involved, computer, router etc. It is not possible for everyone to do this.

I,m listening in rigth now from a hotell room somewhere :) i'm travelling a lot often away 1 to 3 weeks in a row.
I realy like this feature

pski
2008-05-15, 12:40
If you don't have an fixed IP you can use some kind of Dynamic DNS service, either from the router or PC (whatever fits you setup).
You migth have to restart Softsqueeze while your server is shifting IP.



Before I had a static address, I used some Java to talk to the modem and compare the IP to the one previously stored in a file. When the IP changed, it would email me the new address.. I'll see if I can find that (but it's been three machines ago.)

pippin
2008-05-15, 13:17
Also, I would love to be able to stream to an iPhone. Is that possible and if so, how?


Currently: not. The problem is twofold:
1. iPhone can't play streaming music. The only exception is iRadio which can play mp3 streams but there seems to be no way to define a custom stream to play :-(
I know, there are services who claim to play streaming music, but what they do is, they make the iPhone download single tracks and play them. Which gets us to...
2. SqueezeCenter does not support byte range access so you can't even download tracks from the SC web interface :-( There's bug for that, you could vote for it to be fixed (http://bugs.slimdevices.com/show_bug.cgi?id=6266)


One last thing. If you have an iPhone take a look at iPeng!

You definitely should ;-)
You can control SC with that using your iPhone.

Shredder
2008-05-15, 13:23
Thanks for all the info. everyone.

pski
2008-05-15, 14:01
Currently: not. The problem is twofold:
1. iPhone can't play streaming music. The only exception is iRadio which can play mp3 streams but there seems to be no way to define a custom stream to play :-(
I know, there are services who claim to play streaming music, but what they do is, they make the iPhone download single tracks and play them. Which gets us to...
2. SqueezeCenter does not support byte range access so you can't even download tracks from the SC web interface :-( There's bug for that, you could vote for it to be fixed (http://bugs.slimdevices.com/show_bug.cgi?id=6266)



You definitely should ;-)
You can control SC with that using your iPhone.

An interesting thread earlier was "Squeezecenter in your car."

I have a Nokia phone with both 3+G and WiFi. I have no trouble using it ("Handheld" skin) to control SC but when I tried to run SoftSqueeze, I get an "invalid JAR" error.

Any possibility of an S60-based SoftSqueeze?

p

ddewey
2008-05-15, 20:37
Quoting pski (pski.39go9z1210870801 (AT) no-mx (DOT) forums.slimdevices.com):

>
> Shredder;302232 Wrote:
> > I should know how to do this, but cannot figure it out. I would love to
> > stream my music collection from my Thecus 5200 NAS (located in my
> > house) to my computer at work. How is that accomplished?
> >
> > Also, I would love to be able to stream to an iPhone. Is that possible
> > and if so, how?
> >
> > ANy assisatance will be greatly appreciated. Thanks.
>
> General steps.. assuming you have a cable/adsl connection (and winders)
> and that your SC machine is connected to the cable/dsl box WITHOUT a
> router/wireless access point in-between...
>
> Most cable setups give you a "static" (unchanging IP address) and many
> phone companies DSL automatically give you a "static" address when you
> have higher speeds.
>
> 1. at the home computer, open a browser and go to www.whatismyip.com.
> Write down this "external IP address."
>
> 2. open a command window and type
> ipconfig <enter>
> write down the IP address and the default gateway (assuming you are on
> the machine running SC.)
>
> 3. in a browser window key http://default gateway address <enter>
> Mine is
> http://192.168.0.111
> This should display the configuration screen for your cable/dsl modem.
> This is the tricky part because there are so many different models.
> I've used Netopia and Westell (ATT) modems so I'll give you them as an
> example..
>
> 4. You will be looking for NAT setup. In my modems you go to expert
> mode/configure/NAT.
>
> BACKGROUND: what we want to do is to tell the modem that when it sees
> business from the "outside" world (internet/work) on a particular PORT
> number, forward that traffic to the SC machine. There are two ports
> involved, TCP 9000 and TCP 3483. "Default" behavior for these modems is
> to reject ANY inbound traffic from the internet that hasn't been
> requested by a computer on the "inside". This is a good thing,
> preventing the outside world from seeing the network in your home.
>
> In my netopia, I have to "define" a service (as port forwarding, range
> of ports) from ports 9000 through 9000 to base port 9000. Then I do the
> same for port 3483.
>
> When I tell the modem to "enable" these services, it asks which
> computer address I want them to be sent to. Here you enter the IP
> address from the ipconfig screen (the address of the machine that is
> running SC.) Some modems may let you fill this info into a form rather
> than having a two-step process and some modems will show the names of
> the machines in addition to IP addresses when you select the target.
>
> 5. go here http://www.rarewares.org/mp3-lame-bundle.php and download
> lame. This is the code that will compress your music on-the-fly as you
> play it remotely. Put LAME.EXE in
> C:\program files\squeezecenter\server\bin\mswin32-x86-multi-thread
> You don't need the .DLL version. You'll know it's the right place
> because it will have alac.exe, flac.exe, sox.exe, etc.
>
> 6. go to the outside world and open a browser, keying the address:
>
> http://<whatismyip>:9000
> where <whatismyip> is the "external IP address" from the earlier step.
>
> The http:// is very important if you are using a newer version of
> Internet Explorer because they don't make a guess about which protocol
> to use on non-standard ports (like 9000)
>
> If everything has been done right, you should see SC. If you don't,
> it's possible that port 9000 is blocked by your IT people. Tough luck.
> Try again from a public WiFi to see if you've got the configuration
> right.
>
> 7. go to extras and install SoftSqueeze.
>
> 8. things may be ok at this point, but I would rename the SoftSqueeze
> player and change it's Audio settings to about 128K. The Lame quality
> setting you use depends on how fast your SC machine is ...
>
> 9. advanced diddling: run SoftSqueeze. open SC, select the SoftSqueeze
> player and go to HELP/Server and Network Health. Pick a speed and the
> results will be shown on the SoftSqueeze display and in SC. This is
> testing the outbound speed of your home broadband connection.
>
> If you have a very fast connection at home, you can push this up but
> REMEMBER... you'll also be sucking bandwidth from your employer's
> inbound connection so it might be better to be reasonable (and not
> attract attention...)


Nice writeup. This needs to go on the wiki.

dd

Sike
2008-05-15, 22:13
The only thing that need to be remembered is that the built in Username/Password in Squeezecenter is not that secure.

It is meant to stop Kids/Flatmates from changing anything on the Squeezeserver.

davep
2008-05-15, 22:28
Pippin,
have you seen SimplifyMedia in action on an iPhone/iPod Touch? I know that this has nothing to do with using Squeezecenter but it does actually allow streaming audio on the iPhone. I have sat in San Francisco and streamed music (mp3) from my home server in Hong Kong via my iPod Touch with no problems.

SimplifyMedia is free and includes server apps for XP, OSX and Linux plus clients for various devices including (a pretty neat) one for the iPhone/Touch.

davep

pippin
2008-05-16, 01:20
Pippin,
have you seen SimplifyMedia in action on an iPhone/iPod Touch? I know that this has nothing to do with using Squeezecenter but it does actually allow streaming audio on the iPhone. I have sat in San Francisco and streamed music (mp3) from my home server in Hong Kong via my iPod Touch with no problems.

SimplifyMedia is free and includes server apps for XP, OSX and Linux plus clients for various devices including (a pretty neat) one for the iPhone/Touch.

davep

Davep,

that's what I meant. They don't actually stream, they play the files on your server. There's not a big difference if you do it right and it has the potential to conserve some power.
However, this still means you cannot connect an iPhone directly to the SC mp3-stream since this is a stream, not a file and you cannot play files since SC does not allow byte range requests, otherwise you would have access, e.g. through "Songinfo" which gives you a link to download files. If you want "streaming", vote for the bug ;-) I would know how to make playlists play, then...