Why can't I connect to the openfire server?

拥有回忆 提交于 2019-11-29 12:27:40

I just created a new project in which I need XMPP, and ran into the same problem. However, I realized that it was simply because I had forgotten to add the internet permission in my manifest:

<uses-permission android:name="android.permission.INTERNET"/>

Make sure that you haven't done the same mistake.

I have Same problem .... but i resolved this issue at my end using following steps :::

1) Firstly checked Internet permission

    <uses-permission android:name="android.permission.INTERNET"/>

2) Then open the openfire.xml file from C:\Openfire\conf (Installation directory) and edit the file

    <network>
        <interface>Your IP Address(192.168.0.1)</interface>
    </network> 

and save the file and start the openfire server. I think it will be helpful for you....

sofiane

i had the same problem, i followed these steps to solve it:

  1. disable your firewall first

  2. use your the IP address of your server openfire

Use host as localhost if you are using a device. If you are using an emulator, use ip address (192.168.1.2 or whatever) in the configuration step (line 1 of the given code)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!