Android app having trouble finding Linux Core

I did some more digging. It looks like the roon server is constantly multicasting out mdns queries and ssdp queries.

I installed SSDPTester app and verified my phone does see the SSDP packets.

I also tried this test app for multi-cast:
https://cafbit.com/post/testing_multicast_support_on_android/

Within that app, I see the multi-cast mdns packets coming from my roon core to my phone.

So it looks like the multicast traffic from roon core is indeed reaching my Google Pixel 2 phone over wifi. Either the app itself is not correctly receiving the packets from the Android OS or it receives them but then something goes wrong when it tries to send a reply back to the roon server to establish a connection.

I checked my RoonServer logs. When I start the app on my phone, I see that the roon core is able to connect to RAAT on my phone. (IP address hidden)

04/30 11:58:00 Trace: [raatserver] [RaatServer Matt Fioravante's Pixel 2 @ XXX.XXX.XXX.XXX:39387] connected

When I open roon from another machine and go to the audio settings, I can see my Pixel phone listed there as a networked device. I can go in and change its settings and rename it like any other audio device. Despite that, I cannot actually tell roon to send audio to it. The device is missing from the list in the main gui.

After that I looked at some packet captures. I’ve been so far unable to get a full capture on the actual phone, so I ran tcpdump on my roon server vm.

When I start the roon app on my phone, I can see UDP traffic going to port 9003 from my phone. From what I understand I believe that’s the RAAT network traffic which appears to be sort of working.

Next I filtered on TCP and noticed a specific difference in behavior.

When I open the roon app with my Windows client or with the Samsung Galaxy S7, the client initiates a TCP connection on port 9101 to the server. Some of the packets contain ASCII text saying “Sooloss.Msg.DistributedBroker.ConnectRequest” so this looks like the necessary traffic to establish a connection to the core server.

However when I open the roon app with my Google Pixel, I never see any TCP traffic over port 9101. Either the roon app on my phone never tries to establish this connection, or it does and then the TCP packets get lost somewhere (very unlikely as this is a normal unicast TCP connection).

Now finally one more piece of data. When I start the roon app on windows I can connect to my linux server as normal. Now after the windows app is running, if I try to start the roon app on my phone it will locate the windows machine but not the linux server. When I look at a packet dump, I can see my phone establishing that TCP connection over port 9101 to the windows machine. So somehow it works with windows but not linux.

Finally, going back to the logs. For windows and samsung, I see this:

04/30 13:15:42 Info: [brokerserver] Client connected: XXX.XXX.XXX.XXX:43367

I never see the above log message with my pixel. I never see any logs with the [brokerserver] tag.

So in summary, my google pixel 2 phone somehow does not try to establish the TCP connection over port 9101 to my roon core server on linux. I believe this is what is causing the problem. Without additional debugging/logging in the android app itself I’m not sure what else I can do to diagnose further. I have no idea why my google pixel exhibits the problem but my wife’s samsung galaxy S7 does not.

@support, let me know privately if you’d like me to try a debug package or want copies of my logs, packet dumps, or anything else. I’d really like to be able to use roon from my phone.

EDIT: One more data point.

There is one strange sequence of events that actually works. First I start the roon app on my pixel 2. It doesn’t find any servers. Next I reboot my server vm while leaving the app open. Once the roon server starts up, the pixel 2 finds it and is able to connect. In a packet dump, I see the TCP port 9101 traffic. Next I kill the roon app on my phone and restart it. After restarting I’m unable to connect indefinitely.

I hope this is enough information to help get at the bottom of this issue.

EDIT 2:

I was able to run tcpdump on the ubiquiti AP itself. The AP never receives any TCP packets on port 9101 from the Pixel 2. Very unlikely its a wifi or network configuration related issue.

3 Likes

My Pixel 2 worked as a remote for a day after installing 1.5, and although I saw nothing in the release note I was pleasantly suprised!

It appears to be unrelated though as it’s back to the same problem.

This is driving me mad!

Update:

I changed the Devolo settings not to use the DHCP settings from the router, I have not changed the DHCP settings on the Devolo but this has resolved my issue and I have two functional remotes again!

@mike Any updates on the work?

Good evening @support!

I am currently trialing Roon on QNAP NAS, a TS451+ to be precise. With an iPad Pro, I have no problems connecting to the Roon Core on the QNAP. But I am struggling to make the Roon Remote work on the two Android phones we have in the family, namely two identical Moto G4. Since the iPad connects to the Core, I assume the Core is set up correctly to make connections, and I am not aware of any firewalls used on the Moto Gs – at least I couldn’t find any firewall setting in Settings. Searching for a fix, I also read about re-starting, re-booting and re-installing software – but with no success. The phones keep searching for the Roon Core. It is somewhat puzzling that the phones, as Zones, are recognised in the Roon app on the iPad, but the phones cannot find the Core.

This evening, for a few minutes, my phones connected to the Roon Core, and I thought Hallelujah, finally… I then tried my wife’s phones, with no success. By the time, I returned to my Moto G4, the connection was lost… Back to Square One…

Could you please advise any possible fixes that might make the Android phones work?

Many thanks,
Timo

Hey @Timo_Fleckenstein — Thank you for sharing you report with us!

I moved your post to this main thread regarding this topic so that way we can keep similar troubleshooting all in one place to make it easier for others to find later.

To start, may I ask that you please provide a brief description of your current setup using this link as a guide.

Make sure to describe your network configuration/topology, including any networking hardware currently in use, so we can have a clear understanding of how your devices are communicating.

May I also ask that you confirm the following:

  • You mentioned you tried rebooting above. Did you do this with the Core, remote devices, and networking hardware?
  • Is there any active firewall or antivirus on the Core machine? If so, have you tried disabling?

Thanks,
Dylan

Dear Dylan @support

Many thanks for your swift reply – much appreciated!!

On the QNAP, I have a "Roon Server for QNAP (x64), and this is,I believe, the most up-to-date version: 1.5 (build 323) stable. My music files are stored on the same QNAP, but on a separate volume.

The firmware of the QNAP, a TS-451+ with 8GB RAM, is also up-to-date: Firmware 4.3.4.0597 – the NAS recently updated. I am not aware that any antivirus software is running, or that any firewall is enabled. At least, I couldn’t identifies these in Settings, and I haven’t installed any antivirus software or firewall. I can however see that “Allow all connections” is enabled, and that no “Network Protection Access” is enabled.

Re Re-booting, I have tried all – Core, Remote Devices (the Android phones) and the router – but with no success.

Does this help?

Many thanks,
Timo

Still get this issue on my Samsung Tab S2 but only when the apps been in the background and device is awakened from sleeping.

P.S. I forgot to mention that I use an Allo DigiOne as Roon Endpoint — just in case this is relevant as well.

Hi Timo,

What is the brand of router you mentioned, and do you use any other switches or Wifi access points (if so what are those brands). Others have had success by turning off IGMP snooping on their router(s).

Cheers,
daniel

1 Like

Hi Daniel and @support

Many thanks for your messages. We use a Bright Box 2 (from EE), and have no other switches or wifi access points. I went into the Settings of the Bright Box, but couldn’t find anything on IGMP – does this go by any other name as well? I googled IGMP but couldn’t find anything that helped me to identify it in my router’s Settings.

Bizarrely, today, my Android phone did find, for a second time, the Roon Core for a short time. When I had a connection, my wife’s identical phone didn’t find the Roon Core as before.

Where does this leave me? I hope I manage to get the phones connected before my test period with Roon ends… We have only one iPad, but I frequently need to take it to work (or need to take it with me when I travel), which leaves wife and child without Roon Remote…

Many thanks,
Timo

Timo,

That router has a built in Firewall and that may be what is causing the issue. As a test you might try turning the firewall off and seeing if the phones can then connect. ( I would reboot the phones as well). If that is the case, then Turn the Firewall back on and then we can figure out how to open up the firewall to let Roon through.

The instructions can be found here:

Thanks Daniel.

I disabled the firewall, and rebooted router and phone – but no success. I still cannot connect. What puzzles me: how is it possible that I could briefly connect with one of our two phones?

Timo

Dear @support — any more ideas what I could do to get the Android phones running with Roon before my trial ends?

Many thanks,
Timo

Hey @Timo2708!

My sincerest apologies for the delayed response here. For our next step here, I’d like to kindly ask that you please fill out the survey mentioned here. This survey includes some great troubleshooting steps that I think will be great to try here. Once you’ve gone through the steps in the survey please report back and let me know if you’re still having difficulties.

Regards,
Dylan

Thanks your for message, @dylan – I went through the survey, and I am still not connecting. Are we running out of possible solutions?

Cheers,
Timo

Sorry to hear you’re still having troubles, @Timo2708.

I do have another recommendation that will help us narrow down the root cause of the behavior. Testing with a different Core machine and comparing the experience will be a great data point to know where exactly the problem is occurring.

For next steps, please install Roon on a different machine (Windows or OSX) and try connecting your remote devices to that Core. The result of this test will be a great data point in confirming the root cause of what you’re seeing.

Thank you for your continued patience and assistance as we continue to investigate here.

Regards,
Dylan

Thanks for your message @dylan! We are moving forward – at least in terms of identifying the “trouble-maker”. It’s not the Motorala, it seems. I have installed the Roon Core on my PC, and I could establish a connection. The problem appears to be with the QNAP! Any idea what I could do to get the QNAP running with the phones?

Cheers,
Timo

The clue is in the topic title :smiley:

If you have a switch or router in your system where you can turn off IGMP snooping, you can try that. Otherwise you’re SoL for now.

I went through the router’s setting (Bright Box 2 from EE), but I couldn’t find anything that looked like an IGMP setting. Do you have a clue where I should find the IGMP setting if my router had one?

Cheers!