PHP Code:
for( i = 0; i < fishy.size; i++ )
->
PHP Code:
for( i = 0; i < ip.size; i++ )
Edit: also you use ip as an input var for self getip(), then overwrite the ip-var, then use self getip() inside the function to actually get the ip. Doesnt make sense.