Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for a way to check if a server is support xmpp protocol, i.e. xmpp-server is running on this domain.

Maybe special DNS check or something like that?

share|improve this question
up vote 7 down vote accepted

The main default port for non-SSL jabber is 5222. You could spit some xml at it using telnet and see if you get an XML response:

telnet suspectedServer 5222
<?xml version="1.0"?>  <stream:stream to="" xmlns="jabber:client" xmlns:stream="" version="1.0"> 

This can of course be scripted for multiple servers and multiple ports, probably easier to script with nc (netcat).

For XMPP servers which require TLS connections, test with : -

openssl s_client -starttls xmpp -connect suspectedserver:5222
share|improve this answer

If an XMPP server is configured to work with other XMPP servers, it is possible the domain would have an SRV record in DNS. For example:

$ dig srv +short
20 0 5269
20 0 5269
20 0 5269
5 0 5269
20 0 5269

This is by no means a definitive way to find XMPP servers, since stand-alone sites most likely do not have this data in DNS. It is, however, a nicer way to find a jabber server, since the data is published and does not require any port probing. It is also defined in RFC 3920 (the XMPP protocol definition).

share|improve this answer

There's no definitive way of checking. Nmap would give you some indication, but there would be some ethical, and possibly legal issue with running it against other people's servers.

share|improve this answer

If it's your network, you could try running something like Spiceworks across the subnet to look for systems running an XMPP server.

share|improve this answer

If this is a federation server (no, not Startrek), then you can check for the SRV DNS entries as explained here.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.