mIRC Home    About    Download    Register    News    Help

Print Thread
$sock($sockname).ip error? #88592 29/06/04 06:05 PM
Joined: Jun 2004
Posts: 2
T
THe_C0bra Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
T
Joined: Jun 2004
Posts: 2
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

Re: $sock($sockname).ip error? #88593 29/06/04 06:13 PM
Joined: Mar 2004
Posts: 130
T
tsoglanos Offline
Vogon poet
Offline
Vogon poet
T
Joined: Mar 2004
Posts: 130
$sock($sockname).ip returns the ip from the one is connect

but you must first accept the connection else it returns nothing

Re: $sock($sockname).ip error? #88594 29/06/04 06:18 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
On *:socklisten:serv:{
  • sockaccept user
    echo -s * $sock(user).ip
    sockclose user
}

Re: $sock($sockname).ip error? #88595 29/06/04 06:44 PM
Joined: Jun 2004
Posts: 2
T
THe_C0bra Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
T
Joined: Jun 2004
Posts: 2
thanks for your fast help.. now it works smile