5222Port
TCPProtocol
xmpp-clientIANA service nameChatCategory
Port range
5222 is a registered port (range 1024–49151). Any user can bind to it; IANA records which service registered the number.
Security
Only open port 5222 to the hosts that need it. Prefer the encrypted variant of the protocol where one exists.
Open port 5222 in a firewall
ufw sudo ufw allow 5222/tcp iptables sudo iptables -A INPUT -p tcp --dport 5222 -j ACCEPT firewalld sudo firewall-cmd --permanent --add-port=5222/tcp Windows New-NetFirewallRule -DisplayName "XMPP client 5222" -Direction Inbound -Protocol TCP -LocalPort 5222 -Action Allow
Check if port 5222 is open
nc -vz example.com 5222 Test-NetConnection example.com -Port 5222 # PowerShell sudo ss -tulpn | grep ':5222 ' # what is listening locally (Linux)