SonosServiceRegistration to wrong IP-address.

Need help? Post your questions here.

Moderator: moderators

SonosServiceRegistration to wrong IP-address.

Postby aslaets » Mon Aug 31, 2020 12:49 pm

I had a working Sonos interface to my internal subsonic service. My internal range is 192.168.111.0/24
I added qemu/kvm to the system which created a virtual bridge network interface on another /24 range (192.168.112.0)
Output from ip a below.

Subsonic log shows SonosServiceRegistration is connecting to wrong interface:
[2020-08-31 13:25:02,287] INFO SonosServiceRegistration - Enabling Sonos music service, using Sonos controller IP 192.168.111.10, SID 242, and Subsonic URL http://192.168.122.1:4040/ws/Sonos

Problem fixed by bringing virbr0 down.

What is a more permanent fix to this problem ?



2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 50:65:f3:49:82:68 brd ff:ff:ff:ff:ff:ff
inet 192.168.111.40/24 brd 192.168.111.255 scope global dynamic noprefixroute eno1
valid_lft 83622sec preferred_lft 83622sec
inet6 fe80::b6c8:a161:d518:e041/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 52:54:00:d3:69:e7 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
[/size]
aslaets
 
Posts: 2
Joined: Mon Aug 31, 2020 12:41 pm

Re: SonosServiceRegistration to wrong IP-address.

Postby aslaets » Mon Aug 31, 2020 7:19 pm

Found it: it's a startup parameter to set in the default.
sage: subsonic.sh [options]
--help This small usage guide.
--home=DIR The directory where Subsonic will create files.
Make sure it is writable. Default: /var/subsonic
--host=HOST The host name or IP address on which to bind Subsonic.
Only relevant if you have multiple network interfaces and want
to make Subsonic available on only one of them. The default value
will bind Subsonic to all available network interfaces. Default: 0.0.0.0
--port=PORT The port on which Subsonic will listen for
incoming HTTP traffic. Default: 4040
--https-port=PORT The port on which Subsonic will listen for
incoming HTTPS traffic. Default: 0 (disabled)
--context-path=PATH The context path, i.e., the last part of the Subsonic
URL. Typically '/' or '/subsonic'. Default '/'
--db=JDBC_URL Use alternate database. MySQL, PostgreSQL and MariaDB are currently supported.
--max-memory=MB The memory limit (max Java heap size) in megabytes.
Default: 100
--pidfile=PIDFILE Write PID to this file. Default not created.
--quiet Don't print anything to standard out. Default false.
--default-music-folder=DIR Configure Subsonic to use this folder for music. This option
only has effect the first time Subsonic is started. Default '/var/music'
--default-podcast-folder=DIR Configure Subsonic to use this folder for Podcasts. This option
only has effect the first time Subsonic is started. Default '/var/music/Podcast'
--default-playlist-folder=DIR Configure Subsonic to use this folder for playlist imports. This option
only has effect the first time Subsonic is started. Default '/var/playlists'
root@server:/etc/default#
aslaets
 
Posts: 2
Joined: Mon Aug 31, 2020 12:41 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 4 guests