Dear Pure Data community,
how do I send the audio from my microphone to a computer that I don't know the IP number on a local network?
I would like to do this using [ggee/streamout~]
thanks!
How to send audio to a computer that does not know the IP on a local network?
Dear Pure Data community,
how do I send the audio from my microphone to a computer that I don't know the IP number on a local network?
I would like to do this using [ggee/streamout~]
thanks!
@romulovieira-me If you know its name you can connect using [streamout~]
See its help file....... for example use [connect RASBERRYPI3 8008( to connect to a computer named RASBERRYPI3 running Pd with [streamin~ 8008] in a patch.
It works even when the other computer changes its IP address (once it has announced itself to the network).
David.
@whale-av Thanks for the answer.
But I tried this on a Linux computer. I looked for the hostname in the terminal and it returned "r-inspiron3442".
Next, I made the patch on the Pd as follows
[connect r-inspiron3442]
|
|
[ggee / streamout ~]
However, Pure Data returned "bad host?"
Do you know what could have gone wrong?
@romulovieira-me You have to set a port too....... so..... [connect r-inspiron3442 8008( for example.
8008 can be any number but high numbers over 8000 are a good idea to avoid clashes with other port use.
If you have a network scanner app on your phone you can check that r-inspiron3442 appears in a scan.
David.
@whale-av sorry, i forgot to put the port number in the comment, but it is already in the Pd.
I used the Fing app to scan the devices on my network and r-inspiron3442 appears. However, I still receive the "bad host" message
@romulovieira-me What is the operating system of the computer you are using for [streamout~] ?
David.
@whale-av Both computers are running Linux Ubuntu Studio 20.04
@romulovieira-me I don't know Linux very well.
There is probably something in Linux for looking at the network too. In windows it is called Network.... and brings up a list of devices on the network like your Phone app does.
So does your computer running [streamout~] see r-inspiron3442 ?
Also are they set up for file sharing? Are they using "Samba" for that or something else?
r-inspiron3442 will have to be able to accept connections from devices on the local network...... it must have some kind of firewall where that can be allowed.
It looks like nmap is the easiest tool.........
nmap [-options] [r-inspiron3442] [-p] [8008]
..... should give some information (I hope).
BUT.... I see that hostnames for Linux are always suffixed .local.
So maybe try [connect r-inspiron3442.local 8008(
David.
SOLVED
it was enough to add .local to the end of the hostname on the target machine. So the code looks like this
[connect r-inspiron3442.local 8000]
|
|
|
[ggee/streamout~]
Thanks for the help!!!
Oops! Looks like something went wrong!