
Port 5222 (TCP) is XMPP (Jabber) client-to-server traffic, defined in RFC 6120; servers talk to each other on 5269. ejabberd, Prosody and Openfire listen on 5222 and upgrade the connection with STARTTLS; 5223 is the legacy direct-TLS port. Open 5222 to the internet only if you run a public chat server.
Below: what uses this port, security considerations, online check, FAQ.
Free online tool — ping & port checker: instant results, no signup.
XMPP Jabber (clients)
Port 5222 — XMPP (Jabber) client connections (Prosody, Openfire, ejabberd). 5269 — server-to-server. Used in the WhatsApp backend (modified XMPP), legacy Facebook Messenger, Google Talk (deprecated), enterprise messengers.
STARTTLS mandatory in modern XMPP (RFC 6120). Plaintext auth rejected. Spam/abuse — use ejabberd mod_anti_abuse + pubsub rate limits.
Enterno.io Ping + Port checker tests TCP reachability of any port from our server in Moscow.
Port 5222 is the default TCP port used for XMPP (Extensible Messaging and Presence Protocol) client connections, primarily for Jabber clients. XMPP is an open-standard communication protocol widely used for instant messaging, presence information, and contact list maintenance. Its extensibility and real-time communication capabilities make it suitable for various applications beyond simple messaging.
Common use cases of XMPP over port 5222 include:
Additionally, many chat applications have adopted XMPP as a backbone for their messaging systems due to its scalability and flexibility.
While port 5222 serves as a critical communication channel for XMPP, it is essential to consider security implications associated with its use. By default, XMPP traffic over port 5222 is transmitted in plaintext, which can expose sensitive data to potential eavesdroppers. To mitigate these risks, the following security measures should be implemented:
Additionally, consider using firewalls to restrict access to port 5222 from untrusted networks, and monitor traffic for unusual patterns that may indicate a security breach.
Configuring XMPP clients to connect over port 5222 is straightforward. Below are practical examples for popular XMPP clients:
To configure Pidgin to connect to an XMPP server using port 5222:
Port is set to 5222.For Gajim, follow these steps:
Port to 5222.These configurations allow users to connect to their XMPP servers securely and efficiently using port 5222, facilitating seamless communication.
No, modern cloud providers close all incoming ports by default. Explicitly allow 5222 in your Security Group or firewall.
Use Enterno Ping + Port Checker. Or in shell: nc -vz example.com 5222.
Depends on the service. XMPP Jabber (clients) should be hardened (auth + TLS + rate limit) before public exposure. See our 2026 exposure research.
Free plan — 10 monitors, checks every 5 min, no card required. Upgrade for 1-minute interval and multi-region monitoring.