quiniouben / vban

VBAN protocol open-source implementation
GNU General Public License v3.0
450 stars 63 forks source link

No sound on Raspbian with forwarded Ports #60

Open c0wtschpotato opened 3 years ago

c0wtschpotato commented 3 years ago

Hello,

i try to forward the sound from my win10 destkop to the network and play it from different Pis. Current setup looks like this: Win10 VoiceMeter VBAN -> Outgoing Stream to 192.168.0.51 (Router) -> Router forwards 6980 to 192.168.1.108 (Pi). I installed VBAN with disable-jack and disable-pluseaudio. ALSA Speaker-test works fine on the connected TV

I tried a bunch of different parameters when starting but cant get it to work. vban_receptor -i 192.168.1.1 -p 6980 -b alsa -l 4 -s Stream1 -c1 (Note: 192.168.1.1 is the Routers IP in the 1 Subnet) vban_receptor version 2.1.0

Info: socket_open: opening socket with port 6980 Info: socket_open with port: 6980 Info: audio_init: config is direction out, backend alsa, device , buffer size 3072 Info: audio_backend_get_by_name: found backend alsa Info: audio_set_map_config: new map config is nb channels 1 Debug: socket_read invoked Debug: socket_read ip 192.168.1.101

Debug log realy doesnt tell you much, not throwing any errors since its not making any plausibility or connectivity checks. (like you can input IPs like 192.168.1.666 and its just fine with that) With the Android lite App i get it to work as soon as i forward to my phones IP. I cant tell if its a problem with output or with connecting, but i assume its the connection since alsa seems to work.

quiniouben commented 3 years ago

Hi sorry for the late reply, and thank you for your report. Then things look like if no data is received. I just checked the implementation of the receptor: it tries to bind to the ip + port. I don't think it should be a problem in a routed situation, but I will double check this.