Openfire, Jabberd and any other XMPP/Jabber server

Openfire, Jabberd, ejabberd,prosody etc are all standard XMPP (Jabber) servers.

When setting up a standard XMPP/Jabber account, select XMPP in the Accounts tab.

In the account set up screen first try entering your username under Jabber ID. The username  is almost always  like an email address and would look something like . Enter the password and enable the account.  After saving and returning to the accounts page Monal will try to connect. For simple configurations with one server and domain this will automatically work.

If this does not work, edit the saved account by tapping on it in the Accounts tab.  Scroll down and look at the Advanced Settings.  It is highly recommended that you check with the XMPP server administrator to determine what the server,  port and SSL  settings should be. The resource does not matter.   Manually enter the new server name and port  and enable/disable SSL.  Save by returning back to Accounts.  Monal should now correctly connect.

Common quick fixes

1. If you are not sure about the SSL setting, try once with it on and off.  if it works with both, always turn SSL on if it works.

2. The port is almost always  5222.  Some SSL systems require 5223.  Normally it is never 5223 unless SSL is also enabled.

3. It is possible your set up is different. In some configurations, username is just a name without a domain. Check with your IM server administrator to find out how it should be

 

 

 

16 Responses to “Openfire, Jabberd and any other XMPP/Jabber server”

  1. MarcV Nov. 09, 2011 at 9:02 am #

    I want to use Monal with GTalk at work, where I’m behind a proxy that normally does not allow chatting. However, the GTalk application on my Windows PC manages to log in to GTalk but this login takes a long time (about 2 minutes, while it logs in instantly when not behind the proxy). I have logged the network communication of GTalk in windows using wireshark and noticed at some point GTalk switches to an alternative server that does not seem to be blocked. This server appears to be talkx.l.google.com:443. Entering these settings in the GTalk account in Monal at my iPod still does not make it work (but these settings do work when not behind the proxy). What else could I try? If it works in windows, shouldn’t monal be able to connect also?

    Reply
  2. Anu Dec. 02, 2011 at 12:49 pm #

    Its possible that my xmpp DNS SRV record discovery code is buggy. I will look at it to make sure it can handle the proxy.

    Reply
  3. Anu Dec. 19, 2011 at 1:49 am #

    I have identified the error and fixed this in the next release. I have been able to connect to it on 443

    Reply
  4. DW Jan. 20, 2012 at 1:54 pm #

    We use spark im through our network at work. I installed the app, I logged on thru VPN , set up the client and i connected, so cool. I can see everyone on Spark and I can send a messages perfectly but I can’t get replies from users who chat me up? What did I do wrong? I can send but I cannot receive .

    Reply
    • MM Mar. 21, 2012 at 1:48 pm #

      I’m having the same issue as DW using Barracuda IM

      Reply
  5. Stephen Jan. 30, 2013 at 12:12 pm #

    I created an xmpp account with the correct settings, but nothing seems to happen. I don’t see any contacts roster, the Logoff and Reconnect buttons do nothing (except take me to the empty Active Chats window). There are no errors. Looking on the jabberd server, I can see traffic being received and replied to

    Reply
    • Tim Feb. 17, 2013 at 8:47 pm #

      Having the exact same issue. Wish this worked.

      Reply
      • Jason Dec. 10, 2013 at 1:57 pm #

        Also having this exact issue.

        Reply
  6. Francisco Feb. 28, 2013 at 12:54 pm #

    Is there a way to filter contact list groups?

    At work we have our XMPP server setup to distinguish users by groups but I can’t find a way how to do it in the client.

    For example:

    Group A
    – Contact A
    – Contact B

    Group B
    – Contact A
    – Contact B

    Reply
  7. Joe Foley May. 21, 2013 at 4:21 pm #

    We are using openfire 3.8.1 at our university and I can’t figure out how to connect monal to the chat rooms. The instructions claim that the server information will be filled in, but they do not. When I put the conference information in, monal does not seem to do anything with it. Has anyone gotten the MUC to work with openfire?

    Reply
    • Anu May. 21, 2013 at 5:46 pm #

      There are some muc bugs. I’m working on them

      Reply
  8. Gabriel Jun. 01, 2013 at 8:26 pm #

    I’m trying to get this to work with nwschat.weather.gov on my iphone 5 and it seems like its connected, but I’m getting nothing in my contacts or chat page…

    Reply
  9. Jim Aug. 15, 2013 at 2:45 pm #

    Hi,

    I have OpenFire setup as an IM server and have some 20 or so Spark IM clients on various external computers. However, on my iPad and an iPhone 4s using Monal I am getting an XMPP Failure – not authorized error. So I’m thinking there is some setting on the IM Server that I need to change or turn on. Any thoughts on this?

    thanks,

    JimA

    Reply
    • Anu Aug. 15, 2013 at 4:35 pm #

      Openfire is definitely a supported server. It should work put of the box. Do you know if you are using sasl plain or digest md5. I’ve found digest md5 to be inconsistent based on java version.

      Reply
      • Jim Aug. 16, 2013 at 11:39 am #

        Hi,

        to be frank – I have no idea what “sasl plain” or ‘digest md5′ is supposed to be referencing. Is that a setting somewhere on the OpenFire install?

        for my Spark clients on various machines, connecting over the internet, the whole thing was pretty easy to setup and get running without any real knowledge or experience on my part. I was hoping it would be simple with regards to using the iPhone/smartphones and iPads – from the setup instructions it would seem to be. But i’m thinking i’ve missed something critical?

        JimA

        Reply
        • Anu Aug. 23, 2013 at 8:44 am #

          they are different authentication mechanisms that you can set in openfire. It might be easier for me to help you if you are in the beta group. I put debugging and logging code in that but strip everything from the app store releases to protect user privacy. send an email to if you are interested.

          Reply