in reply to getting unix users ip addresses
Where'd ya get the data from? who? last? Maybe you should parse up the wtmp file yourself with a module, if that's what's needed.