I am trying to connect to openfire via strophe.js on android phonegap and here is my bosh url BOSH_SERVICE : '[http://192.168.1.4:7070/http-bind/](http://192.168.1.4:7070/http-bind/)' but I keep getting 404 HTTP error:
Error 404 Not Found
HTTP ERROR 404
Problem accessing /httpbind/. Reason:
Not Found
Powered by Jetty://
Openfire is working (I have checked it with Pidgin) and my I am using WAMP as server. How to fix this?
When you insert http://192.168.1.4:7070/http-bind/ into your browser, you are making a direct connection to Openfire. That connection is method GET, which is not supported and throws the error you see.
Do you actually get that error when you attempt to connect with strophe? Keep in mind that do to same origin / same port constraints, strophe needs to call back to the server it was served from. So if you are serving strophe from a web server, then you need to proxy the /http-bind/ to openfire.
Proxy /http-bind/ helped in this case, but now I got another issue. When I login with username and pass that exists in OpenFire server it and go to Sessions tab I see that I am logged in as anonymus. Can you help me here or should I open new thread?
EDIT
Somehow I fixed this issue by adding "@192.168.1.3" to username (I have no idea how this helped) but now my presence in OpenFire is Offline.**
**