Question: is xmpp peer to peer?
Answer: XMPP is not P2P, and has no central server. Instead, it has thousands of servers, one for every domain. Typically, you're connected to your own server (your provider's or your own personal domain), and your contact is connected to another.