elibroftw / music-caster

Music Caster is a modern music player with the ability to cast audio files, system audio, and URLs to Google Chromecasts, Google Home/Nest Minis, etc.
https://elijahlopez.ca/music-caster/
Other
148 stars 17 forks source link

Server binded to wrong network adaptor #76

Open EricChan1989 opened 4 days ago

EricChan1989 commented 4 days ago

Dear Developer,

I tried with the latest version of this software, and i failed to cast anything to my chromecast devices. On the computer i use to install music caster, since I have docker desktop installed, it uses WSL, and have its related virtual network adapter in Hyper-V environment. I tried to scan the QR code of the webui, and it always direct me to that virtual network adapter's IP instead of my physical one. Also, I can detect the chromecast devices and casting to them, but after the initial successful handshaking (a sound to let us know it is connected), no any voice can be passed to the chromecast devices. I use a windows 11 computer with cable network only ( i disabled the wireless network adaptor). May i have your help on this? I believe that it should always use my physical ethernet adapter for both casting and webui?

Thanks.

elibroftw commented 4 days ago

I'll try to see. Are you able to access the webui from your mobile?

EricChan1989 commented 4 days ago

I'll try to see. Are you able to access the webui from your mobile?

No, i cannot. Since it is a wsl virtual network adaptor, i can only access the webui from the computer i install this software. Mobile phone is in my local network which is nothing related to the wsl virtual network adaptor, so it doesn't work. Thanks

elibroftw commented 4 days ago

Ah okay. This is then a bug related to the get up function. Can you provide the output of ipconfig?

EricChan1989 commented 3 days ago

yes, of course. Please find the log file and the ipconfig as below. You can see that it uses the 172.21.160.1 IP address, which is the Hyper-V WSL one.

2024-09-26 09:20:15,992 INFO (312) (): Time to import is 0.81 seconds 2024-09-26 09:20:16,026 INFO (2662) background_thread(): system: Windows 2024-09-26 09:20:16,026 INFO (3956) start_on_login_modifications(): removing old startup shortcuts 2024-09-26 09:20:16,026 INFO (3958) start_on_login_modifications(): removed old startup shortcuts 2024-09-26 09:20:16,026 INFO (3959) start_on_login_modifications(): creating/removing startup registry entry 2024-09-26 09:20:16,026 INFO (3961) start_on_login_modifications(): created/removed startup registry entry 2024-09-26 09:20:16,325 INFO (4207) (): LAN IPV4: 172.21.160.1:2001/ 2024-09-26 09:20:16,329 INFO (4209) (): LAN IPV6: [fe80::e911:84b9:1c8:cded]:2001/ 2024-09-26 09:20:16,329 INFO (4260) (): Time to start (excluding imports) is 0.31 seconds 2024-09-26 09:20:16,329 INFO (4261) (): Time to start (including imports) is 1.12 seconds 2024-09-26 09:20:16,330 INFO (2897) activate_gui(): selected_tab=None


C:\Users\Administrator>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : DESKTOP-QQDFQTI Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Hybrid IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No

Unknown adapter NordLynx:

Connection-specific DNS Suffix . : Description . . . . . . . . . . . : NordLynx Tunnel Physical Address. . . . . . . . . : DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::e911:84b9:1c8:cded%55(Preferred) IPv4 Address. . . . . . . . . . . : 10.5.0.2(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.0.0 Default Gateway . . . . . . . . . : 0.0.0.0 DNS Servers . . . . . . . . . . . : 103.86.96.100 103.86.99.100 NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Ethernet:

Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Realtek Gaming 2.5GbE Family Controller Physical Address. . . . . . . . . : [removed for security purpose] DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes IPv4 Address. . . . . . . . . . . : 192.168.2.2(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.2.1 DNS Servers . . . . . . . . . . . : 1.1.1.1 8.8.8.8 NetBIOS over Tcpip. . . . . . . . : Enabled

Unknown adapter OpenVPN Data Channel Offload for NordVPN:

Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : OpenVPN Data Channel Offload Physical Address. . . . . . . . . : DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes

Unknown adapter Local Area Connection:

Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : TAP-NordVPN Windows Adapter V9 Physical Address. . . . . . . . . : [removed for security purpose] DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter WiFi:

Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Intel(R) Wi-Fi 6 AX201 160MHz Physical Address. . . . . . . . . : [removed for security purpose] DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Local Area Connection* 1:

Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter Physical Address. . . . . . . . . : [removed for security purpose] DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Local Area Connection* 10:

Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter #2 Physical Address. . . . . . . . . : [removed for security purpose] DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Bluetooth Network Connection:

Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network) Physical Address. . . . . . . . . : [removed for security purpose] DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes

Ethernet adapter vEthernet (Default Switch):

Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter Physical Address. . . . . . . . . : [removed for security purpose] DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::8593:9017:f01e:e94c%25(Preferred) IPv4 Address. . . . . . . . . . . : 172.29.0.1(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.240.0 Default Gateway . . . . . . . . . : DHCPv6 IAID . . . . . . . . . . . : 419435869 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2E-2D-51-14-70-A6-CC-B2-9B-5C NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter vEthernet (WSL (Hyper-V firewall)):

Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter #2 Physical Address. . . . . . . . . : [removed for security purpose] DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::d5b0:1ea6:d494:c06f%50(Preferred) IPv4 Address. . . . . . . . . . . : 172.21.160.1(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.240.0 Default Gateway . . . . . . . . . : DHCPv6 IAID . . . . . . . . . . . : 838866269 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2E-2D-51-14-70-A6-CC-B2-9B-5C NetBIOS over Tcpip. . . . . . . . : Enabled

Thank you very much for your prompt response!!