powered by Jive Software

Using Strophe + bosh always return AUTHFAIL status

I am using strophe.js and bosh to connect to my openfire server.
Here are my openfire server details:

XMPP Domain Name: subpm.localdomain
Bosh (http-bind) : http://subpm.localdomain:7070/http-bind/
ip: let say 120.12.2.1

I have used Adium and successfully connect via bosh. I have to mentioned the ip address instead of xmpp domain name. http://120.12.2.1:7070/http-bind/ and in jid i have also used the ip address.

But using strophe i am always getting AUTHFAIL status. I am using ip address just like Adium to connect. Can anybody guide me in right direction. Thanks.