Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-06-2011, 11:23 PM   #1
Senior Member
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Rep: Reputation: 69
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?
Old 03-07-2011, 08:54 AM   #2
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: VirtualBox win 10 guest | OpenBSD 6.4 -current | OpenBSD 6.3 bridge | Fedora 29
Posts: 359

Rep: Reputation: 139Reputation: 139
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forward a wired network skalman93 Linux - Networking 1 01-16-2009 04:45 PM
LXer: Copy hard disk or partition image to another system using a network and netcat LXer Syndicated Linux News 0 08-12-2007 04:11 PM
TV stream with netcat on network RicardoB Linux - Networking 1 07-03-2007 01:22 AM
How to forward sound by using cygwin? unicon Linux - Networking 0 03-20-2006 03:07 PM
rhythmbox gives no sound when i fast forward cd1680 Linux - Software 1 03-13-2005 05:06 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration