Here's how to do it

Use the function the link points to to pull back the IP address :
$ping=Ping(%clientname%,1)
Then you can use the SPLIT command in kix 4.x to split the IP address up into octets and grab the one you want.

As Jpols says, it does not work on win9x though....