I installed ejabberd on my machine and it works fine.
localhost:5280/admin localhost:5280/http-bind
It also displays "ejabberd mod_http_bind". Implementing XMPP over BOSH (XEP-0206) "I think it works fine.
When I try to create a connection with Strophe, I get the connection status as CONNFAIL .
My code is as follows:
var conn = new Strophe.Connection('http://localhost:5280/http-bind'); conn.connect(data.jid, data.password, function (status) { // jid=user@localhost if(status===Strophe.Status.CONNECTING){ alert('connecting...!!'); } if(status===Strophe.Status.AUTHFAIL){ alert('auth failure...!!'); } if(status===Strophe.Status.CONNFAIL){ alert('connection falied !!'); }}
I keep getting CONNFAIL .
I also added proxypass for http://localhost:5280/http-bind in the apache httpd.conf file.
I canβt understand what the problem is.
source share