<div><lame-solution></div>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.<div>
<br></div><div>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.<br>
<div><meta http-equiv="content-type" content="text/html; charset=utf-8"></lame-solution></div><div> </div><div><br><div class="gmail_quote">On Fri, Jan 28, 2011 at 11:57 PM, Pierre Massat <span dir="ltr"><<a href="mailto:pimassat@gmail.com">pimassat@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi all,<br><br>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.<br>
<font color="#888888">
<br>Pierre<br>
</font><br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Pedro Lopes (MSc)<br>contact: <a href="mailto:pedro.lopes@ist.utl.pt" target="_blank">pedro.lopes@ist.utl.pt</a><br>website: <a href="http://web.ist.utl.pt/Pedro.Lopes" target="_blank">http://web.ist.utl.pt/Pedro.Lopes</a> / <a href="http://pedrolopesresearch.wordpress.com/" target="_blank">http://pedrolopesresearch.wordpress.com/</a><br>
</div></div>