[PD] Get IP from Pd + network broadcast

Christof Ressi info at christofressi.com
Fri Jan 22 21:59:03 CET 2021


Hi,

> I wanted to check if there are any new methods to get one's own ip 
> from Pd 
Are you talking about the local IP address or your public IP address?

> I read somewhere that 255.255.255.255 was also for broadcast, but 
> since it's not working I imagine I read wrong. 
255.255.255.255 is indeed the broadcast address. What is not working? 
Which Pd version? Which network objects? Broadcast works just fine for 
me with [netsend -u] in Pd 0.51 on Windows 7.

Note that broadcast/multicast can only be used for local networks. Also, 
for p2p communication over the internet you need 
https://en.wikipedia.org/wiki/UDP_hole_punching.

> And final question: besides netpd, are there any known public patches 
> where users from several networks can connect to and send/receive data? 
Are talking about local networks or the internet?

Shameless plug: The next (pre)release of "aoo" will allow sending 
arbitrary OSC messages over the internet. It has methods for sending 
messages to individual peers and also "broadcast" messages to all 
connected peers. Hopefully I manage to release it soon... It's way 
overdue :-/

Christof

On 22.01.2021 19:41, João Pais wrote:
> Hi list,
>
>
> I wanted to check if there are any new methods to get one's own ip 
> from Pd - that is, so that a user doesn't go check the system 
> settings. It would be necessary for all windows, macos and linux. 
> Older messages talk about using [shell] in unix systems, and some hack 
> with a batch file in windows. If this is still the current method, how 
> would one activate a batch file in windows from inside pd?
>
>
> As my knowledge of network isn't that good, just to check: to send a 
> broadcast message for all peers in the same network, is the correct IP 
> e.g. xxx.xxx.xxx.255? I read somewhere that 255.255.255.255 was also 
> for broadcast, but since it's not working I imagine I read wrong.
>
> Resuming: to send a broadcast message in the network, it's necessary 
> to know the first 3 parts of one's IP?
>
>
> And final question: besides netpd, are there any known public patches 
> where users from several networks can connect to and send/receive data?
>
>
> Best,
>
> jmmmp
>
>
>
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> https://lists.puredata.info/listinfo/pd-list





More information about the Pd-list mailing list