As I know facebook chat is working like user <> server <> user and it's not P2P. I was talking with some guys today and they were pretty sure it's possible to netstat a facebook user IP address. I'm not familiar how FB chat works, but I highly doubt they're using P2P in their chat. So my question is it possible to netstat a facebook IP, or any way to find his IP without sending a link or using any phishing tools?

Most of the articles in the google results, says this is actually possible: here.

  • As others have said it doesn't seem that chat is P2P. But Facebook does support video chat (although I've never used it), it's possible that it could be P2P.
    – Dracs
    Commented Dec 6, 2013 at 4:32

3 Answers 3


Facebook chat is running on XMPP protocol. It is decentralised, but not P2P. It is similar to email - there is no central server, but lots of domain servers talking to each other and taking care of their clients. I doubt that it would be possible to get IP address from XMPP.


Directly, no.

Indirectly, it's possible. One way:

  1. Have a web server, whose access log you control, up and running.
  2. Send your chat partner a unique hyperlink pointing to that web server, have them click the link. For example: http://yourdomain.com/JohnDoe.html (the web page does not have to exist, throwing a 404 is fine).
  3. Check your web server's access log to get the IP address of requests to /JohnDoe.html.
  4. You have your conversation partner's IP address.
  • A dirty trick always valid. But this is a kamikaze... you also disclose your identity at that website owner
    – Brethlosze
    Commented Oct 12, 2018 at 12:05

Facebook's chat platform utilises the XMPP protocol, which does not disclose the IP address of the client.

You are correct in saying that Facebook does not use P2P in their chat. As far as I know, it is not possible to get a facebook IP via web chat of a contact without using social engineering.

It may be worth checking whether IP addresses are disclosed when using Facebook's custom chat client, however, it is unlikely that client IP addresses are ever disclosed.

  • and what about Calls on Facebook Messenger ? It should be the same. Both output connection must be binded somewhere ? Commented Feb 18, 2021 at 13:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .