ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Spark Can't connect to Openfire server

    IT Discussion
    spark openfire
    3
    18
    5.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      samy
      last edited by

      Hello,
      I have successfully installed openfire on CentOS 7 by simply following a post that i read already here. a very helpful post.
      Now the problem i am facing, is that when installing a spark IM client on an end user's machine; when creating an account, i can't get to register it successfully. The given error is: cannot connect to 192.168.x.x (the server's IP).
      I believe it's about opening ports on centOS but i am not familiar with it. can anyone help?

      1 Reply Last reply Reply Quote 2
      • S
        scottalanmiller
        last edited by

        @samy welcome to MangoLassi!

        1 Reply Last reply Reply Quote 0
        • S
          scottalanmiller
          last edited by

          So my first guess is that the firewall is open for the web management ports (9090) but not for the XMPP communications ports. In my installation example I only opened what was necessary for management, a local Spark client would connect but a remote one will not.

          1 Reply Last reply Reply Quote 2
          • S
            samy
            last edited by

            my goal for implementing this project is to let the users in my company communicate with each other. and spark with openfire was the best free solution i have found.
            what shall i do to let all my users be able to connect to the server?

            S 1 Reply Last reply Reply Quote 0
            • S
              scottalanmiller
              last edited by

              You will need ports 5222 and 5223 opened for Spark to connect (5223 only for SSL.)

              1 Reply Last reply Reply Quote 0
              • S
                samy
                last edited by

                what is the commend that i should type on centOS?

                1 Reply Last reply Reply Quote 0
                • S
                  scottalanmiller
                  last edited by

                  Try this...

                  firewall-cmd --zone=public --add-port=5222/tcp --permanent
                  firewall-cmd --zone=public --add-port=5223/tcp --permanent
                  firewall-cmd --reload
                  
                  1 Reply Last reply Reply Quote 1
                  • S
                    scottalanmiller @samy
                    last edited by scottalanmiller

                    @samy said:

                    my goal for implementing this project is to let the users in my company communicate with each other. and spark with openfire was the best free solution i have found.
                    what shall i do to let all my users be able to connect to the server?

                    OpenFire is an amazing platform. We at @NTG used to run it commercially as well (paid hosting) but phased that out long ago, but 2010 at least.

                    Another awesome platform, but very different, is Rocket.Chat. I plan on making an installation guide for that shortly as well.

                    Those are are, so far, the best that I have found for running free inside your own company.

                    1 Reply Last reply Reply Quote 0
                    • S
                      samy
                      last edited by

                      awesome ! it worked

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        scottalanmiller @samy
                        last edited by

                        @samy said:

                        awesome ! it worked

                        Awesome!

                        1 Reply Last reply Reply Quote 0
                        • S
                          samy
                          last edited by

                          one last question about this topic. would the users show on list automatically when i install spark on their machines?

                          T S 2 Replies Last reply Reply Quote 0
                          • T
                            travisdh1 @samy
                            last edited by

                            @samy said:

                            one last question about this topic. would the users show on list automatically when i install spark on their machines?

                            I doubt it. On the other hand, it's not that hard to get OpenFire integrated into AD/LDAP. Just an annoyance with needing a new version of one of the files the OpenFire server uses. (See my reply in the howto thread. Should have a 1-liner you just have to paste into a shell.) I haven't even rolled out AD yet, but OpenFire is connected and working with it.

                            Guess I'm doing a lot of talking to me, myself, and I for the time being 😛

                            1 Reply Last reply Reply Quote 0
                            • S
                              samy
                              last edited by

                              haha.. alright then.
                              but it's an excellent tool .. i love it !

                              1 Reply Last reply Reply Quote 1
                              • S
                                samy
                                last edited by

                                btw, when i finished the openfire installation, it asked me to put an admin account, but when i try to login to the admin portal it keeps saying the user or password is wrong. any way to reset it from cmd?

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  scottalanmiller @samy
                                  last edited by

                                  @samy said:

                                  one last question about this topic. would the users show on list automatically when i install spark on their machines?

                                  no, not by default. However, what you can do is to make a group that includes all users and force that list to everyone from the admin console.

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    scottalanmiller @samy
                                    last edited by

                                    @samy said:

                                    btw, when i finished the openfire installation, it asked me to put an admin account, but when i try to login to the admin portal it keeps saying the user or password is wrong. any way to reset it from cmd?

                                    Username is "admin"

                                    Are you use that you got the name correct? Try that, resetting can be done but will be a bit more work.

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      samy
                                      last edited by

                                      got it : )

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        scottalanmiller
                                        last edited by

                                        Great! We are making progress.

                                        1 Reply Last reply Reply Quote 1
                                        • 1 / 1
                                        • First post
                                          Last post