You can, on IRC, see which IP belongs to a user (whatever you need to know this for, obviously . This is achieved, inside mIRC, with the /dns command. So, for example, if you want to know what IP is using your channelmate Jogi you can do:
and you will see, after some time, the IP and the IP name (if there is one) of Jogi in the Status window. So, what’s he big deal you’ll ask, a page just for this command? Not actually, because it may be annoyng to switch to the Status window every time you need to check the IP of a user. So here we’ll make a script which will send a message to our current channel window with the regarding information.
You can use this addon to load the script from within mIRC, instead of writing the lines yourself.
If you want to add the lines yourself, here are the instructions.
Before we begin, let’s recall that you need to press the button in mIRC to access the Remote panel, that is where you edit scripts.
What you need to write there is:
on *:DNS://echo -a Resolved $nick to: Name - $naddress , IP - $iaddress
and the output, after you add this line, press OK, and issue the /dns command on a user, will appear in the active window, and resemble this:
Resolved Joey42 to: Name - co3061808-a.eburwd1.vic.optushome.com.au , IP - 184.108.40.206
In the case the IPname was not available, the field after “Name -” would simply be empty.
You can check with this also the IP corresponding to websites. For example, if you want to know what IP is associated with www.microsoft.com just do:
and the output will be:
Resolved to: Name - www.microsoft.com , IP - 220.127.116.11
and as well see what IP name belongs to an IP you run into:
the output being:
Resolved to: Name - HSE-Montreal-ppp3473182.sympatico.ca , IP - 18.104.22.168
clear enough I’d say.
Now go on IRC and play a bit.
[Updated 15th Sept 2010]
Several visitors have been asking in the comments why, when they do
/dns username, they get a strange code instead of the numeric IP address (in the form of 5B26E798.A7F81C6C.2CF41D6B.IP); this is obviously not an IP address, nor a named alias, but just your server that has a “high security” policy, where it normally does not allow users to know each other’s IP addresses and instead outputs that string, which is univocally associated with the user, but cannot be used to determine the real IP. This is a limitation that cannot be worked around per se, still, you could try asking the user for a DCC query session, which is a special private chat where your computers are directly connected to each other, without passing through the server: if the other user accepts your DCC request, then you can see each other’s IP addresses, since your PC’s are directly connected.