working with the IP stack from a scripting language... is kinda in the hard side.

If you have one of MS's programming suites installed, then you can do it, otherwise, you have to install a 3rd party api control.

we went over this stuff in this thread here.
http://kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=2&t=002284

your best bet would be to shell out and do a ping command and grab the information that way.

code:

$ip = "208.169.161.27"

shell '%comspec% /c ping -a -n 1 -w 0 $ip | find /i "[$ip]" > %temp%\temp.txt'

$nul = open(1,"%temp%\temp.txt",2)
$data = readline(1)
$nul = close(1) del "%temp%\temp.txt"

$ipname = substr($data,9,instr($data,"[$ip]")-10)

? $ipname


Bryce