[PD] IP address in windows?

patko colet.patrice at free.fr
Sat Jan 29 05:28:26 CET 2011


Hello Pierre,

 you can get ip adress with windows cmd


In pd-extended there is [flatspace/popen] object for that,
see attached archive containing a patch and a batch file, put both on same directory and run the patch.

----- "Pedro Lopes" <pedro.lopes at ist.utl.pt> a écrit :

> <lame-solution> Even if there's no shell/system object for windoes
> (I'm not using win so I cannot really answer) you can easily create a
> batch script (a windows shell script) that saves the output of
> ipconfig in a file. Then parse the file with pd and extract the ip
> from there.
> 
> 
> It can even by dynamic in the sense that your shell script can be a
> sort of cron (linux scheduled jobs, I think are called sheduled
> services in win) and can run a number of times. Thus your game could
> see the file for the lastest IP.
> 
> </lame-solution>
> 
> 
> 
> On Fri, Jan 28, 2011 at 11:57 PM, Pierre Massat < pimassat at gmail.com >
> wrote:
> 
> 
> Hi all,
> 
> Is it possible to get my computer's IP from inside Pd? I know it's
> possible in Linux using the shell object, but it doesn't exist in
> windows. I'm trying to make a game requiring two players to play on
> two different computers, and it'd be very annoying if each user had to
> find her IP before playing.
> 
> Pierre
> 
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
> 
> 
> 
> 
> --
> Pedro Lopes (MSc)
> contact: pedro.lopes at ist.utl.pt
> website: http://web.ist.utl.pt/Pedro.Lopes /
> http://pedrolopesresearch.wordpress.com/
> 
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list

-- 
Patrice Colet 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getip.zip
Type: application/x-zip-compressed
Size: 419 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20110129/974262d4/attachment-0001.bin>


More information about the Pd-list mailing list