PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: Bonafide on 02 November, 2003, 05:35:05

Title: IP to Hostname
Post by: Bonafide on 02 November, 2003, 05:35:05
Hi, I'm using PtokaX (Testdrive 4) and I need the command to resolve a user's ip address to their host name.  

EX: local host = SOMETHING(curUser.sIP) or curUser.sIp.SOMETHING


I know this command exists, but I've totally forgotten what it is.

Thnx in advance.
Title:
Post by: pHaTTy on 02 November, 2003, 11:24:04
as far as i know there aint one :(, but im sure there will be a script soon, ive been thinging of ways for a while, as soon as i come up with a intelligent way of doing it, i will give it a shot

-phatty
Title:
Post by: klownietklowniet on 02 November, 2003, 11:30:20
Hint:    

  local hostname = tohostname(curUser.sIP)
Title:
Post by: pHaTTy on 02 November, 2003, 11:33:53
hmmmmmmmmmmmmmmmmmmm, never heard of it..............is it already possible?
Title:
Post by: klownietklowniet on 02 November, 2003, 11:38:18
Try it... ;-)
Title:
Post by: pHaTTy on 02 November, 2003, 11:40:18
hehe i will do now, something that i can add to my bot if i get it working :o)
Title:
Post by: tezlo on 02 November, 2003, 13:50:02
luasockets (http://www.tecgraf.puc-rio.br/~diego/luasocket/func.html).. been available for a while
Title:
Post by: Bonafide on 02 November, 2003, 21:11:50
Thanks klownietklowniet.... I knew it was someting simple  :D
Title:
Post by: kepp on 02 November, 2003, 22:20:02
thanks!! :)