Jump to content

casting listening on wrong ip address?


Recommended Posts

Have regularly had the same issue noted elsewhere whereby casting makes the "start" sound on the designated speaker, but then the playback cursor loops over the same two seconds in Poweramp and no music comes out of the speaker.

My phone is rooted so I checked and noted when this is happening that Poweramp is listening on an interface which is not reachable from my home network:


# ss -tnlp | grep mpz
LISTEN      0      50      [::ffff:]:18888                    *:*                   users:(("mpz.audioplayer",pid=7114,fd=211))
LISTEN      0      50      [::ffff:]:18889                    *:*                   users:(("mpz.audioplayer",pid=7114,fd=196))

This address is a /32 on the v4-rmnet_data1 interface, which seems to be associated with the mobile data network.  It's inaccessible from my home wifi network.

In those instances where casting does work I see that Poweramp is bound to the the address of the phone's wlan0 interface.  Haven't yet figured out reliable steps to make it fail vs work.  I've experimented with using iptables on the phone to nat from wlan0 to this address, but that hasn't yet helped.

This is incomplete in terms of a bug report, but figured it worth raising in the event that it sheds light on a potential improvement to the algorithm Poweramp uses to select a listening address for casting.

Poweramp build number
build-976-bundle-play [976004-c2601e58] Full Version 64 bit
device model Pixel 4A 5G
Android version 13
stock ROM
steps to reproduce not yet established

Link to comment
Share on other sites

  • 5 weeks later...

@andrewilley I don't think this is related to Chromecast not able to get the media receiver issue that you describe. (CC has to download a media receiver from Max server, this receiver is what receives the audio stream from the phone).

This is a topic that has popped up a couple of times, Chromecast starts the playback but nothing is heard and I would assume that the receiver is on the CC at this point.

What's good in this troubleshooting is that @trapier found out that the Poweramp process is binding to the wrong interface on the phone and the workaround is to turn off mobile data during. That's a good thing as that can help other users having CC issues and it also gives @maxmp something to work against.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...