Port 5222 is the XMPP (Jabber) client-to-server port for instant messaging, presence, and real-time communication. XMPP on port 5222 supports STARTTLS encryption and SASL authentication. Used by ejabberd, Prosody, and formerly by Google Talk and Facebook Messenger before they switched to proprietary protocols.
Port Number
5222
Protocol
TCP
Service
XMPP Client-to-Server
Range
IANA Registered (1024–49151)
Test XMPP STARTTLS connection and certificate
openssl s_client -connect server:5222 -starttls xmpp -xmpphost domain.comExtract XMPP server info (software version, supported features)
nmap -p 5222 --script xmpp-info targetProsody: check server status and loaded modules
prosodyctl statusejabberd: count currently connected users
ejabberdctl connected_users_numberprosodyctl status
ejabberdctl connected-users
profanity -a [email protected]XMPP (originally Jabber) was created by Jeremie Miller in 1999 as an open, federated instant messaging protocol. Port 5222 was assigned for client connections. XMPP became an IETF standard (RFC 6120/6121, 2011). Google Talk used XMPP federation (2005-2014) before closing it. WhatsApp's backend is based on modified ejabberd. Today XMPP powers enterprise messaging (Cisco Jabber used it), IoT (XEP-0323), and privacy-focused chat (Conversations app, Snikket).
Is XMPP still relevant in 2024?
Yes, for specific use cases: (1) privacy-focused messaging (end-to-end encryption via OMEMO, federated = no single company controls it), (2) IoT device communication (lightweight, real-time, XEP extensions for sensors), (3) enterprise chat (on-premises deployment, full data control), (4) gaming chat (many games use XMPP internally). Not relevant for: consumer messaging (Signal/WhatsApp won), or team collaboration (Slack/Teams won).
XMPP vs Matrix – which federated protocol to choose?
XMPP: mature (25 years), lighter protocol, better for low-bandwidth/IoT, massive extension ecosystem (XEPs), simpler server setup. Matrix: newer (2014), built-in E2E encryption (Megolm), better media handling, room-based model (like Discord/Slack), bridges to other platforms. Choose XMPP for: lightweight messaging, IoT, existing Jabber infrastructure. Choose Matrix for: modern team chat replacement, bridging to Slack/Discord/IRC, organizations wanting a Slack alternative.