I might have missed something somewherebut if the PC is a dual boot, then it is either in Windows or Lubuntu
.
The OP says
Windows > Squeezeplay > LMS installed on this partition: works.
Lubuntu > Squeezeplay > Is LMS installed on this partition?: does not work
Maybe consider a raspberrypi running LMS that can be accessed by either partition.
Results 11 to 20 of 20
-
2018-12-04, 01:43 #11
- Join Date
- Jan 2011
- Location
- Staffordshire. UK
- Posts
- 2,485
-
2018-12-04, 06:05 #12
- Join Date
- Dec 2018
- Location
- The Netherlands
- Posts
- 12
Just to explain my situation, I have 2 PC's:
PC 1 runs Windows and has LMS installed.
PC 2 is dual boot Windows / Lubuntu, and both boot partitions have Squeezeplay installed. With the ufw firewall enabled on the Lubuntu system, SqueezePlay on Lubuntu won't connect to LMS on PC1.
In first instance I misinterpreted the information in the UFW log file. But I think I now understand. In my own simple words: After the LMS client (i.e. Squeezeplay) has contacted the LMS server on PC 1, the LMS server sends back a message from port 3843 to a random port on the LMS client, using the UDP protocol. In the ufw log file that I showed this happened to be port 40162, but I have also seen various other (seemingly random) port numbers. Since the random ports are blocked by the firewall on Lubuntu, the LMS client can't establish a working connection with the LMS server.
Give me some time to configure the firewall on Lubuntu to receive information on random port numbers from the LMS server, as suggested by BosseJ. My first thought is to define an application based firewall rule that only allows the LMS client (i.e. Squeezeplay) to receive udp packets on a random port number above 1023.Last edited by CJS; 2018-12-04 at 14:58. Reason: fixed a typo
-
2018-12-04, 08:15 #13
- Join Date
- Jan 2011
- Location
- Staffordshire. UK
- Posts
- 2,485
Thanks for the full explanation
I now understand
I'm still confusedbut that has nothing to do with your problem
I hope you succeed and get it all tickety-boo
I'm all emoji'd out
-
2018-12-04, 08:16 #14
- Join Date
- Sep 2017
- Location
- Åkersberga, Sweden
- Posts
- 69
2 Touch, 1 Picoreplayer 4.1.0 on RaspBerry 3B with 7" display
LMS latest nightly on Ubuntu 18.04.1 on Intel Core2 Duo E4500 @ 2.20GHz, 2GB
All wired
-
2018-12-04, 13:47 #15
- Join Date
- Dec 2018
- Location
- The Netherlands
- Posts
- 12
This indeed works. After setting the IP address of the LMS server in Squeezeplay, Squeezeplay can connect to LMS with firewall enabled. Firewall rules for ports 3843 and 9000 can be removed. Only caveat is that after a fresh install of Squeezeplay, you will need to temporarily disable the firewall (sudo ufw disable), otherwise the Squeezeplay Home menu is not available such that the Settings menu can not be entered. Thanks again for your help!
-
2018-12-04, 14:38 #16
- Join Date
- Dec 2018
- Location
- The Netherlands
- Posts
- 12
3 solutions for Squeezeplay connection problem on Linux
With the help of bpa and BosseJ, we have now the following 3 solutions for the Squeezeplay connection problem on Linux.
The solutions assume that you use Ubuntu / Lubuntu / Xubuntu with the ufw firewall:
Solution 1: Disable Linux firewall
> sudo ufw disable
This solves the connection problem, but compromises the security of your Linux system.
For this reason it is better to use method 2 or method 3
Solution 2: Enter IP address of LMS server manually in Squeezeplay
After initial install of Sqeezeplay, you temporarily need to disable the firewall, otherwise the Squeezeplay settings menu will not be availabe:
> sudo ufw disable
Then start Squeezeplay, and manually enter the IP address of the LMS server on your home network:
Squeezeplay >Settings > Advanced > Networking > Remote Libraries > Add New Library => Enter IP address
After you have tested that Squeezeplay can connect to the LMS server, you can enable the firewall again:
> sudo ufw enable
Solution 3: Define an application based rule for Squeezeplay in Linux firewall
Open an xterminal in folder /etc/ufw/applications.d
Create a text file called jive (replace leafpad with the text editor that you use):
> sudo leafpad jive
Copy the following text to file jive:
Code:[jive] title=Squeezeplay description=SqueezePlay is a Logitech Media Server software player that can play music and internet radio streams on your personal computer. ports=1024:65535/udp
Save the text file, and load the application rule that you just created in the firewall:
> sudo ufw app update jive
> sudo ufw allow jive
Now start Squeezeplay, and check that it can connect to the LMS server.
Closing notes:
Advantage of solution 3 over solution 2 is that Squeezeplay will automatically detect the LMS server on the network. So no problem when the IP address of the LMS server is changed.
After defining the application rule for Squeezeplay (=jive) in ufw, "sudo ufw status verbose" shows the following:
Code:Status: active Logging: on (low) Default: deny (incoming), allow (outgoing), disabled (routed) New profiles: skip To Action From -- ------ ---- 1024:65535/udp (jive) ALLOW IN Anywhere 1024:65535/udp (jive (v6)) ALLOW IN Anywhere (v6)
Regards,
CJSLast edited by CJS; 2018-12-04 at 15:02. Reason: fixed a typo
-
2018-12-04, 15:10 #17
- Join Date
- Oct 2005
- Location
- Ireland
- Posts
- 16,712
AFAICT There is a 4th solution - enabling very specific access on ufw probably just UDP is required on 3483- (not application specific) as others have made it work (thread below) but it seems it is a bit finicky to get working.
https://forums.slimdevices.com/showt...o-media-server
-
2018-12-04, 16:22 #18
- Join Date
- Dec 2018
- Location
- The Netherlands
- Posts
- 12
I tried that, see this post in this thread. It did not work for me, since LMS appears to send udp data to random other ports than 3843 on the client, that are then blocked by the firewall on the client. This is what I concluded from the UFW log, and is the reason for defining a firewall rule specific for jive that allows incoming udp traffic on all ports between 1024 and 65535. It was actually a remark from you that made me aware that initially I mixed up sending and receiving ports when reading the ufw log file.
Last edited by CJS; 2018-12-05 at 00:27.
-
2018-12-24, 11:50 #19
- Join Date
- Dec 2015
- Posts
- 11
Is there an advantage to using Squeezeplay vs Squeezelite + Jivelite?
-
2018-12-24, 13:31 #20
- Join Date
- Oct 2005
- Location
- Ireland
- Posts
- 16,712
Your firewall rule should allow UDP 3483 on incoming or outgoing port as required - ignore the other port which will be random.
For example the rules for NTP which is a UDP protocol on port 123
Code:#---------- # NTP #---------- iptables -A INPUT -p udp --sport 123 -j ACCEPT iptables -A OUTPUT -p udp --dport 123 -j ACCEPT
An fourm old post showing iptables rules for 3483 amongst many other rules
https://forums.slimdevices.com/showt...ables-SBS-woesLast edited by bpa; 2018-12-24 at 13:44.