LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is there any way to forward sound over the network using netcat... (https://www.linuxquestions.org/questions/linux-newbie-8/is-there-any-way-to-forward-sound-over-the-network-using-netcat-866862/)

trist007 03-06-2011 10:23 PM

Is there any way to forward sound over the network using netcat...
 
I've always been curious about this but say that you had computer A which runs headless and had music that you wanted to hear from computer B.

Sure you can setup vlc or icecast on computer A and stream it. But what if you could forward the sound over netcat.

For example, say when you play a sound file on Computer A data gets sent to /dev/snd.

Would be possible to do something like the following.

Computer B
nc -lvp 6666 > /dev/snd

Computer A
cat /dev/snd | nc -v -w 5 computer_b 6666

And be able to hear sound playing on Computer A?

Is this possible?

Can anybody point me in the right direction to find out about how to do this?

////// 03-07-2011 07:54 AM

My sig contains simple mp3 server using netcat and dd command.
u could mod it and play with it to see how it works.

I havent wrote it myself, i found it @ perlmonks a few years ago.


All times are GMT -5. The time now is 04:03 PM.