LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: tri boot :: Fedora 22 && 23 && Rawhide == Testing Systemd
Posts: 222

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


Reply


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


All times are GMT -5. The time now is 01:16 AM.

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