Which port uses XMPP?

I searched and did not find which ports XMPP uses. I need to implement an XMPP server and client and use XML transfer, file transfer and streaming. Do they use different ports? Is there a way I can get them to use all the same, so I don’t have to worry about the network administrator? Thanks

+44
xmpp ports
Aug 10 2018-10-10
source share
3 answers

According to Wikipedia :

 5222 TCP XMPP client connection (RFC 6120) Official  
 5223 TCP XMPP client connection over SSL Unofficial
 5269 TCP XMPP server connection (RFC 6120) Official
 5298 TCP UDP XMPP JEP-0174: Link-Local Messaging / Official
              XEP-0174: Serverless Messaging
 8010 TCP XMPP File transfers Unofficial    

Port numbers are defined in RFC 6120 § 14.7.

You say that you were looking for this information, but could not find it. I found this by searching the XMPP port . The Wikipedia page that I quoted above is currently the first result of this search, and the RFC is on the first page of search results.

+80
Aug 10 '10 at
source share

According to Extensible Messaging and Presence Protocol (Wikipedia) , the standard TCP port for a server is 5222.

The client supposedly uses the same ports as the messaging protocol, but can also use http (port 80) and https (port 443) to deliver messages. They have the advantage of working for users behind firewalls, so the network administrator should not be involved.

+4
Aug 10 '10 at 18:33
source share

The required ports will be different for your XMPP server and any XMPP clients. Most “modern” XMPP servers follow specific IANA ports for server 5269 and for clients from server 5222. Any additional ports depend on what features you enable on the server, that is, if you offer BOSH, then you may need an open port 80.

File transfer largely depends on both the clients you use and the server as to which port it will use, but most of them also negotiate a connection through the existing connection between the client and the XMPP server, so the client side will require the opening (or proxied through port 80.)

+3
Aug 13 '10 at 16:25
source share



All Articles