Is it possible to determine IP Address of an XMPP client

761 views
Skip to first unread message

Steve

unread,
Jan 25, 2011, 5:02:42 PM1/25/11
to jabber-net
I need to know what the IP address is of a user who accesses our
service. We are required to process connections only from certain
locations. In order to be efficient, we need the IP address of the
incoming connection.

Is it possible from a custom XMPP client we create to query the XMPP
server for the other client's IP address (the remote end may be using
a non-custom client like Google Talk)? I have looked at XEP-0279 which
I could use to find my custom client's IP, but not that of the remote
user.

If this is not possible from a custom client, would it be possible as
a server component or another manner? Using a packet sniffer or other
tool would not be feasible.

Steve

Bruce Tolley

unread,
Jan 25, 2011, 6:14:19 PM1/25/11
to jabbe...@googlegroups.com
I am sure there is another way but I embeded a <ip> tag in our custom client.  If the client receives a <ip> message it disreguards it for the user but sends the client ip back to the sender.


--
You received this message because you are subscribed to the Google Groups "jabber-net" group.
To post to this group, send email to jabbe...@googlegroups.com.
To unsubscribe from this group, send email to jabber-net+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jabber-net?hl=en.




--
Bruce Tolley

Steve

unread,
Jan 26, 2011, 11:36:30 AM1/26/11
to jabber-net
With your example, are both clients custom? I wondered if for example
a Google Talk or Facebook client would respond appropriately to the
<ip> tag sent by a custom client or do both clients need to be custom
in order for this to work?

Steve
> > jabber-net+...@googlegroups.com<jabber-net%2Bunsubscribe@googlegrou ps.com>
> > .

Steve

unread,
Jan 27, 2011, 10:51:22 AM1/27/11
to jabber-net
Does the embedding of this <ip> tag work, if the far connection is not
a custom client. For example, if I created a custom client that sent
<ip> to a Google Talk client, will the Google Talk client respond
appropriately?

Thanks.

On Jan 25, 4:14 pm, Bruce Tolley <betol...@gmail.com> wrote:
> > jabber-net+...@googlegroups.com<jabber-net%2Bunsubscribe@googlegrou ps.com>
> > .

Joe Hildebrand

unread,
Jan 28, 2011, 11:06:27 AM1/28/11
to jabbe...@googlegroups.com
You'd need to have both a custom client and a custom server. The XSF and
IETF are unlikely to ever standardize anything like this, since it is
likely to be used for nefarious purposes.

>jabber-net+...@googlegroups.com.

Bruce Tolley

unread,
Jan 28, 2011, 12:42:21 PM1/28/11
to jabbe...@googlegroups.com
No  you have to use the custom client on both ends.

To unsubscribe from this group, send email to jabber-net+...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/jabber-net?hl=en.




--
Bruce Tolley
Reply all
Reply to author
Forward
0 new messages