Not logged in. · Lost password · Register
Forum: MatriX RSS
Problem connecting past authentication
panos #1
Member since Feb 2010 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: Silverlight BOSH and Openfire with Matrix
I am able to connect to an Openfire Server 3.6.4 using the sample application.  I get the following exchange which appears fine to me at first glance.  I am not sure why the server does not respond back after the password is sent (last SEND below).  I am unable to get any further.  There is nothing on the server side logs even though it can clearly communicate.  Any help would be appreciated.

7:57:29 PM SEND:
<stream:stream xmlns:stream="" xmlns="jabber:client" to="terry" version="1.0" >
7:57:29 PM RECV:
<stream:stream xmlns:stream="" xmlns="jabber:client" from="terry" version="1.0" id="c852e5ec" >
7:57:29 PM RECV:
<stream:features xmlns:stream="">
  <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  <compression xmlns="">
  <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind" />
  <session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
7:57:29 PM SEND:
<auth mechanism="PLAIN" xmlns="urn:ietf:params:xml:ns:xmpp-sasl">XXX</auth>

Here is the Connect() code:
            _xmppClient.Username = login.Jid.User;
            _xmppClient.Password = login.Password;
            _xmppClient.XmppDomain = login.Jid.Server;

            _xmppClient.Transport = Matrix.Net.Tranport.BOSH;
            _xmppClient.Uri = new System.Uri("");
            _xmppClient.Port = 80;

            if (!String.IsNullOrEmpty(login.Hostname))
                _xmppClient.Hostname = login.Hostname;
            _xmppClient.AutoPresence = false;
            _xmppClient.Priority = login.Priority;
             * One restriction on using sockets in Silverlight 2 is that the port range that a network application
             * is allowed to connect to must be within the range of 4502-4534.
             * These are the only ports allowed for connection using sockets from Silverlight 2 applications.
             * If a connection is to a port is not within this port range, the connection attempt will fail.
             * If you connect over HTTP Proxy (see below) then this restriction does not apply to the Xmpp Port
             * but it does to the ProxyPort.
            //_xmppClient.Port = 5222;
            //_xmppClient.Port = 4503;

             * if you want to use Bosh then set the tarnsport to Bosh
             * an the Uri to the correct Bosh Uri
            xmppCon.Transport = Matrix.Net.Tranport.BOSH;
            xmppCon.Uri = new System.Uri("");

            // status and show for Autopresence after login
            _xmppClient.Status  = "online";
            _xmppClient.Show = Matrix.Xmpp.Show.NONE;

             * we connect through a HTTP Proxy (HTTP Tunnel) here.
             * So the Silverlight port range restriction applies to the ProxyPort, but not to the xmpp port.
            _xmppClient.ProxyType = Matrix.Net.Proxy.ProxyType.None;
            //_xmppClient.ProxyHostname = "";
            //_xmppClient.ProxyHostname   = "localhost";
            //_xmppClient.ProxyPort       = 4503;


Panos Lambrianides
This post was edited on 2012-12-14, 13:13 by Alex.
panos #2
Member since Feb 2010 · 2 posts
Group memberships: Members
Show profile · Link to this post
Before anyone asks the clientaccesspolicy.xml file is at the root of /var/www/.  I don't believe this has anything to do with the issue since there is communication between the matrix client and the Openfire server.

Alex #3
Member since Feb 2003 · 4388 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
There is a bug in Openfire's BOSH implementation. I suggest to use another server or a standalone BOSH connection manager until the problem is fixed an a new release is available.
see also:

Your server setup is correct. Otherwise you would not see the Xml you posted

Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS