SamDel / ChromeCast-Desktop-Audio-Streamer

Stream the sound of your desktop to your Chromecast Audio device
MIT License
415 stars 30 forks source link

Connects to speaker but no sound is heard #149

Closed eldontyrellcorp2019 closed 1 year ago

eldontyrellcorp2019 commented 1 year ago

Version 5.1.6 worked the first time I used it (see https://github.com/SamDel/ChromeCast-Desktop-Audio-Streamer/issues/147)

But now, no music is heard after I connect to a speaker. The status in the app says "Idle" but I know it is connected because I can control the speaker volume with app slider.

Possibly related is a Windows .NET 7 error message that I get every time I launch the app or scan again for devices (which I ignore and close, and the app stays open).

I have a firewall rule for both inbound and outbound connections, and I have created a port forwarding rule for port 8009 in my Synology WRX560 router, using my PC's IP address. Havel also added the exe file to the split tunnelling settings in my NordVPN app to bypass the PC's VPN connection.

Windows 10 log, app log, and some screenshots are attached. Thanks for your help.

APP ERROR LOG - Destop Audio Streamer.txt WINDOWS ERROR MESSAGE - Destop Audio Streamer.txt Screenshot CDAStreamer error Screenshot CDAStreamer control panel

SamDel commented 1 year ago

Something goes wrong with the IP4 address that's used for the streaming connection. Are there entries in that dropdown on the option tab?

The application can also be improved in a scenario like this.

eldontyrellcorp2019 commented 1 year ago

Hi Sam, yes, there is my PC's IP - which is chosen - plus one other: 127.0.0.1

FA-Bubba commented 1 year ago

For what it is worth, I have assigned fixed IP addresses to each of my speakers, so they don't wander around the LAN... FYI, I have 16 speakers, and some in groups. The connections have been pretty good for a long time.

SamDel commented 1 year ago

Thanks. Does Setup 5.3.1.zip work for you?

eldontyrellcorp2019 commented 1 year ago

For what it is worth, I have assigned fixed IP addresses to each of my speakers, so they don't wander around the LAN... FYI, I have 16 speakers, and some in groups. The connections have been pretty good for a long time.

Yes, I do have static IPs for all my devices.

eldontyrellcorp2019 commented 1 year ago

Something goes wrong with the IP4 address that's used for the streaming connection. Are there entries in that dropdown on the option tab?

Okay I've discovered the cause. Damn it, it's the VPN!

If I completely close the NordVPN app, Desktop Audio Streamer works as normal.

So I need to work out the cause. Perhaps some additional process/app/s needs to be added to the split tunnelling list - not just ChromeCast.Desktop.AudioStreamer.exe?

SamDel commented 1 year ago

In code it fails on this line. The LocalEndPoint property of the Socket class returns null in your case. Because of that the streaming connection is not opened (No 'Streaming from ...' line in your log) and loading the stream by the device fails.

I tried to fix that in 5.3.1. With the information you provided I can maybe do a test (with VPN) later.

eldontyrellcorp2019 commented 1 year ago

In code it fails on this line. The LocalEndPoint property of the Socket class returns null in your case. Because of that the streaming connection is not opened (No 'Streaming from ...' line in your log) and loading the stream by the device fails.

I tried to fix that in 5.3.1. With the information you provided I can maybe do a test (with VPN) later.

Thanks for that. I'll just manage in the meantime :)