I have an IRC client application and I am currently trying to integrate it with google maps.
I am fairly new to android and hence I would like to know how to get ip address of the users in an channel.
Note: I am aware about /whois command but I would like to get ip address of all users so that I can locate them on map.
Could you please help me in this regard.
You can use WHO
if I recall correctly. This will give a list of all users (full host + nicks in the form of nick!user@host
. Do note that most IRC servers honor the user's privacy and enforce a network-wide +i
umode, which effectively hides the IP address from the host.
If you know your server is not like that, WHO
is your way to go.
Edit:
This isn't an android problem at all, this is purely an IRC protocol problem. As a user, you may query the channel for the users inside of it, to get information on them. That command is calle WHO
. You use it as follows:
WHO <#channel>
And it will give you a list of all the users in this channel in the following format:
352 <channel> <user> <host> <server> <nick> <H|G>[*][@|+] :<hopcount> <real name>
From which you can filter out <host>
which will contain the IP address (if not hidden) of the user <nick>
.