[PD] determine local IP address
IOhannes m zmoelnig
zmoelnig at iem.at
Tue Sep 27 09:47:05 CEST 2005
Urs Liska wrote:
> Hello list,
>
> is there any method of getting the IP address of the computer the patch
> is running on?
[shell] + ipconfig ?
i guess the problem is, that most computers are virtually multi-homed
(having multiple network cards and IP-addresses attached to them): very
few (actually not true: more and more gaming computers are shipped with
dual ethernet cards) computers have multiple real ethernet cards.
however, apart from your normal network card (eth0) bound to whatever IP
you assign to it, you have a loopback device (lo) bound to 127.0.0.1
(localhost)
so you have to make a decision which network device you want to transmit
as your "local IP" address. (in most cases, 127.0.0.1 is not what you
want to transmit)
> I would like to simplify the process of connecting two patches by
> sending the second patch the IP address of the first patch.
i would use some magic in a startup script which queries the IP address
and then saves it to a file or sends it to pd using the "-send" flag
when starting pd (i would prefer the later as it needs no additional files)
mfg.ad.r
IOhannes
>
> Thanks
> Urs
>
More information about the Pd-list
mailing list