This article provides a primer for enabling access to your Squeezebox Server™ Media Streaming system. It describes how to gain access to the Squeezebox Server™ control panel and how to add a player so that you can play your music from outside your LAN (Local Area Network).

Home Router Port Forwarding

Normally, your home router will not allow direct access to you LAN. To enable access your systems through your Home Router from the WAN you will need open two 'Port Forwarding' addresses. Your router admin menu should guide you to the appropriate rule settings but typically the drill is as follows:-

Attribute

Suggested Setting

Rule Name

Forward 9000

Port Number (or start & finish range 9000)

9000

Rule Name

Forward 3483

Port Number (or start & finish range 3483)

3483

IP Address

The address of your Squeezebox Server™

(e.g. 192.168.1.50)

Once saved two rules will be created and they will look something like this:-

Name: Forward 9000

Protocol: TCP&UDP

Address: 192.168.1.50:9000

 

Name: Forward 3483

Protocol: TCP&UDP

Address: 192.168.1.50:3483

 

You can test that the ports are open by trying address 192.168.1.50:9000 from your browser – you should see your Squeezebox Server™ control panel.

 

Enable Squeezebox Server™ Remote Access

Open 'Settings' Menu and go to 'Advanced' / 'Security'

Attribute

Suggested Setting

Password Protection

Password Protection

Username

admin (Reset this once the system in proven)

Password

admin (Reset this once the system in proven)

Confirm Password

admin (Reset this once the system in proven)

Block Incoming Connections

Do Not Block

Allowed IP Addresses

Your Squeezebox Server™ address

(e.g. 192.168.1.50)

CSRF Protection Level

None (You can revisit this once you have decided the remote user access service levels)

From you home router you should be able to identify your home IP address. This is the unique number provided by your Internet Service Provider (ISP) to identify your internet service location. If you can't find this easily then use one of the many tools available such as http://www.ipchecking.com/. Pass this address to the remote access user.


Some ISPs routinely change the IP addresses allocated to their customers but do not necessarily inform the customer that they have done so. While normally this doesn't matter too much, where customers have set up remote access capabilities it is not only very annoying but also frustrating if the user is away from home when it happens. (An article on this topic is being prepared.)

Squeezebox Server™ Remote Player

The final step is for the remote user to choose and install a suitable player for use at the remote location. This could be a PC or a Mac computer or a dedicated Squeezebox player device. For a PC or Mac we recommend SqueezePlay which looks and feels very like the Squeezebox Touch. Users with Android operating systems should try SqueezePlayer – we have yet to fully test this but the tests we have done so far have given good results. SqueezePlayer on Android requires a licence fee.

Squeezebox Touch, Classic, Duet or Squeeze Player

Provide your Touch or Squeeze Player with the remote server information as follows:

  • Open 'Settings'Advanced/Networking/Remote Libraries'. 
  • Add the IP Address of the remote Squeezebox Server™ you obtained in the previous section. (Do not add the port forwarding identifier which follows the colon, just the address). 

Once you have set up the new server you can switch between the remote server and any local server you are running:

  • From the main menu navigate to My Music / Switch Library.
  • You should see all of your libraries listed, including any remote libraries you've set up. Select the library you want to use for this session.
  • If you have set up a username and password (as recommended) then every time you initiate access to the remote Squeeze server you will be invited to enter the Username and Password.

Squeezebox Boom

Provide your Logitech Boom Player with the remote server information as follows:

  • Use the back arrow to go to the HOME menu.
  • Hold the back arrow down until the configuration menu appears.
  • Scroll to "Current Settings" and select it by pushing the Boom scroll knob.
  • Scroll to "Squeezebox Server" and select it.
  • Edit the IP address to show the address of the remote Squeezebox Server™ you obtained in the previous section. (Do not add the port forwarding identifier which follows the colon, just the address). 
Once you have set up the new server you can switch between the remote server and any local server you are running:
  • From the main menu, navigate to Settings / Music Source
  • You should see all of your libraries listed, including any remote libraries you've set up
  • Select the library you want to use for this session.
  • If you have set up a username and password (as recommended) then every time you initiate access to the remote Squeeze server you will be invited to enter the Username and Password.

Raspberry Pi with Squeezelite using PiCorePlayer

Provide your PiCorePlayer with the remote server information as follows:
  • Access the PiCorePlayer web interface using the IP address (specify port :8077 if you are using PiCorePlayer Version 16 or earlier).
  • In the PiCorePlayer menu, go to the tab Squeezelite Settings
  • Scroll down the page and find the field 'Squeezelite server IP' and enter the LMS server IP address 
  • Click 'Submit'
  • Go back to the Main Page tab
  • Click the Restart button ("Restart Squeezelite with new settings")
  • Your player will connect to the new server.

To return to your local Squeezebox Server, repeat the above process and enter the local server address. 

NOTE: Your "home" Pi + PiCorePlayer can access remote servers with no problems. But what if you want to take your compact and light Pi + HiFiBerry DAC + PiCorePlayer device on the road with you and use it while you are away from home? Mostly no problem, especially if you are staying with friends. Just remember that you will probably need Ethernet wired access at some point, even if you want to use wireless. To configure a new access point in a new location via the PiCorePlayer web interface, you will need a wired connection to the LAN. This could be a problem if you are staying in a hotel or want to use any network where wired access might be a hassle. There are workarounds, such as using a wired ethernet connection to your laptop for initial settup in a new location. Or you could set up the Pi to access a WiFi hotspot on your mobile phone before leaving home. Or you can plug in a screen and keyboard and configure the Pi using the command line interface. But if you want to avoid fuss and bother, pack a device that can be confugured directly through a built-in user interface, such as a Logitech Squeezebox Touch or a laptop computer running Squeezeplay. 

Using An Android Device As a Controller

If you use an Android device as a controller (for example, using Squeezer) then you will need to enable additional port fowarding in your home router to make it work with a local player and remote server. In the same way as you set up port forwarding for the player (as described above) you should also forward port 9090 to enable external controller to create external access to Squeezebox Server™. 

Setting The Streaming Bitrate For External Players

If you are streaming high bitrate content such as 'flac' over the internet, then it is possible that your player will not get a timely content supply and will 'buffer' while until the supply catches up with the player demand. This can be resolved by setting parameters in Squeezebox Server™ which convert those higher bitrate files into 'mp3' 'on the fly' (the files in the database are not altered but are changed in real time while streaming). Open Server Settings/Player/ 'The name of the remote player you are using' /Audio/Bitrate Limiting and select the rate you want to try. This can be done remotely via the Squeezebox Server™ controller (e.g. 192.168.1.50) so play with some options.

If you do not have LAME installed, it can be found at http://rarewares.org/mp3-lame-bundle.php

A detailed description of how to install LAME and set the Squeezebox player can be found at  http://wiki.slimdevices.com/index.php/Enjoying_your_music_from_another_place

Hints & Tips

If you are using one of your home players as a remote device then make sure that you de-synchonise it from other home devices before you travel. If you fail to do this, the remote player will force the remaining home based players (those connected to your LAN) to adopt the external WAN IP address instead of individual LAN addresses. When you return home and reconnect the remote player to your LAN, you'll find that Squeezebox Server™ streams out to the WAN and each player establishes a stream from the WAN. While technically there is nothing wrong with this, it is rather ineffecient as Squeezebox Server™ is setting up multiple streams across the external network which will likely slow streaming and cause players to buffer.