mIRC Homepage
Posted By: pball Get local ip - 19/02/11 05:39 AM
Is there an easy way to get the local ip address? I'm updating a client/server script that is used over lan and I'd like to get the local lan ip.
Posted By: Tomao Re: Get local ip - 19/02/11 06:12 AM
Have you tried the $ip identifier?
Posted By: pball Re: Get local ip - 19/02/11 05:22 PM
that gets the external ip, if by chance it gets your local ip that is just random chance. Well not random but it does that when it doesn't resolve your external ip or something like that.

so $ip won't work
Posted By: Wims Re: Get local ip - 19/02/11 06:17 PM
You have to use /localinfo -h in order to fill $ip with your local ip
Posted By: pball Re: Get local ip - 20/02/11 05:18 PM
Thanks for that info, didn't know there was a way to change that via script.

Now I just need to add that to my script
© mIRC Discussion Forums