mIRC Homepage
Posted By: THe_C0bra $sock($sockname).ip error? - 29/06/04 06:05 PM
hi all ;>

i have a little problem.. when i set up a listener in mirc and someone connects to the bind-port .. i get with $sock($sockname).ip the ip, where the script runs and not the ip from the guy who connects.. is that an error (in my script | mirc) or should i read the /help again ? :]

Thx --THe_C0bra
Posted By: tsoglanos Re: $sock($sockname).ip error? - 29/06/04 06:13 PM
$sock($sockname).ip returns the ip from the one is connect

but you must first accept the connection else it returns nothing
Posted By: Online Re: $sock($sockname).ip error? - 29/06/04 06:18 PM
On *:socklisten:serv:{
  • sockaccept user
    echo -s * $sock(user).ip
    sockclose user
}
Posted By: THe_C0bra Re: $sock($sockname).ip error? - 29/06/04 06:44 PM
thanks for your fast help.. now it works smile
© mIRC Discussion Forums