mIRC Home    About    Download    Register    News    Help

Print Thread
#219162 07/03/10 01:00 AM
Joined: Jun 2009
Posts: 96
V
Babel fish
OP Offline
Babel fish
V
Joined: Jun 2009
Posts: 96
hello, im using mirc 6.21
and am curious if mirc script can return/get
local ip (like in LAN), and not just external one toward inet ($ip)

?

Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
/localinfo -h
//echo -a $ip
/localinfo -u

Might need a delay in there for it to work, but that's the general idea.

It gets a lot more complex than this though, since you may have multiple adapters with separate ips, so there's generally no easy way to get your "LAN ip".


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
argv0 #219167 07/03/10 02:43 AM
Joined: Jun 2009
Posts: 96
V
Babel fish
OP Offline
Babel fish
V
Joined: Jun 2009
Posts: 96
nice thanks

btw that overwrites original $ip
any way to get it back ?

Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
/localinfo -u, as I stated.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
argv0 #219171 07/03/10 05:11 AM
Joined: Jun 2009
Posts: 96
V
Babel fish
OP Offline
Babel fish
V
Joined: Jun 2009
Posts: 96
returns ip of IRC network i'm on :P

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
I'm guessing you're using a vhost provided by your IRC network? That being the case you'll have to either reconnect or restore the information manually.

/localinfo A1B2C3D4.ipt.aol.com xyz.xyz.xyz.xyz

Joined: Jun 2009
Posts: 96
V
Babel fish
OP Offline
Babel fish
V
Joined: Jun 2009
Posts: 96
thanks guys smile


Link Copied to Clipboard