This worked on Ubuntu for me
#N canvas 440 77 450 300 10;
#X obj 27 107 shell;
#X msg 27 13 ifconfig rausb0;
#X obj 27 134 route inet;
#X obj 27 171 unpack s s s s;
#X symbolatom 27 216 10 0 0 0 - - -;
#X msg 27 36 ifconfig wlan0;
#X msg 27 58 ifconfig eth0;
#X connect 0 0 2 0;
#X connect 1 0 0 0;
Hey guys, has anyone solved this issue for windows 7? I've tried to use the
getip.bat file solution but the cmd just opens and closes instantly, and
nothing gets returned to Pd through the [flatspace/popen] object. Perhaps
I'm placing the getip.bat file in the wrong place, but I tried the same
patc
I've tried on windows vista it works like a charm:
Microsoft Windows [version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. Tous droits réservés.
C:\Users\patko>getip.bat
192.168.0.21
---
Please check with 'ipconfig' command into cmd prompt if your computer has an
IPv4 adress.
In pd pat
Thank you both for your replies.
As you can imagine i'm not at all comfortable with batch files. I know how
to create one from a txt file, but that's about it.
getip.bat doesn't work for me. Nothing happens. Even when i try this :
@echo off
for /F "usebackq tokens=14" %%i in (`ipconfig ^| find /i
Hello Pierre,
you can get ip adress with windows cmd
In pd-extended there is [flatspace/popen] object for that,
you need to create a file called 'getip.bat' containing those lines:
@echo off
for /F "usebackq tokens=14" %%i in (`ipconfig ^| find /i "IPv4"`) do echo %%i
and then you can grab t
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 sens
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