powered by Jive Software

Connecting 2 JIVE servers

is it possible and how to do it?



Kiko, please elaborate

is it possible and how to do it?

Yes everything is possible, just a matter of how much effort you want to put into it.

Do you want two servers on same network, two servers on internet??? more detail please.


Can u tell me how to connect 2 or more jive server ?

the two server on one subnet mask …

ex: jive server 1 :

jive server 2 :

i use the win32 program on server2 and linux on server 1 . . .

so please send me the instalation step to setyo131@yahoo.com

All XMPP/Jabber server (that are capable of s2s… g) auto-connect to each other if neccessary. So - if you have jab1.yourcompany.com and jab2.yourcompany.com and a user registered at the first server (let’‘s call him john.doe@jab1.yourcompany.com) sends a message to friend’'s of his (how about BobAndAlice@jab2.yourcompany.com) the following should happen:

  • jab1.yourcompany.com notices, that this is not a local address and therefor tries to start a server to server connection to jab2.yourcompany.com or reuses any existing connection to that server and forwards the message.

  • jab2 receives a message from jab1 and tries to deliver it locally

The situation above explains only basic stuff and I’‘m still unsure if the two of you asking about “connecting servers” really talk about server to server connections or again about clusters. The latter is not supported yet. The first: See above, if you install two servers, don’'t mess up the DNS setup (and ensure that the relevant ports are open) it should work “out of the box”.

Hope that helps,


actually I was thinking about both situations. For the first one you have explained. I’'ll try to do that in a few days.

Now, I’'m wondering how to connect two servers that are separate by Internet.

Server >>> LAN >>> Internet <<< LAN <<< Server2

Solution is VPN tunnel and that (standard s2s) has to work??

Hey Kiko,

You can use the latest nightly build that supports server-to-server communication. That means that you could have 2 or more instances of Jive Messenger (or any XMPP server that supports s2s) each one with its own hostname (resolvable by a DNS) connecting through port 5269 (by default).

So in the case that server1 and server2 will connect through Internet then make sure, if you are using a firewall, to open port 5269. I quick test that I usually do is a telnet to the remote host (using the hostname defined in the remote XMPP server) at port 5269. This test helps you check that the hostname that the XMPP server is using can be reached and that port 5269 is opened.


– Gato


if i use a jive messenger 2.1.5 server, does it has capaability to connect server 2 server ?

if doesn’'t, what server should i use ???

Hey setyo,

JM 2.1.5 does not have support for s2s. You will need to install JM 2.2 Beta 1 or the latest nightly build (prefered) in order to have s2s. FYI, the 2.2 version has been tested with many servers successfully.


– Gato

Can u show me the step to setting s2s if i’'m already using JM 2.2.0 beta 1 ??

thank’'s b4

i’‘m already install n set the server to server setting on JM 22.0, but those two server still doesn’'t connect ??

can u tell me what’'s wrong with my 2 server ?


.:: Setyo ::.

I’‘am already setup those 2 server, but still can’'t connect S2S

what should i do next ???

this is the error log :



2005.07.13 16:02:48 [org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:149)

] Connection closed before session established


2005.07.13 16:19:51 [org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:149)

] Connection closed before session established


2005.07.13 16:19:51 [org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:149)

] Connection closed before session established


2005.07.13 16:30:58 [org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:149)

] Connection closed before session established


2005.07.13 16:30:58 [org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:149)

] Connection closed before session established


2005.07.13 16:30:58 [org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:149)

] Connection closed before session established


2005.07.13 17:11:22 [org.jivesoftware.messenger.container.PluginServlet.service(PluginServlet.java: 110)



ok my problem still exists…

here is the situation…

there are 2 networks connected

LAN1 :

Jabber server: jabber1.domain1 (

DNS server: dns.domain1 (


Jabber server: jabber2.domain2 (

DNS server: dns.domain2 (

On every Jabber server we go to Server to Server and I wrote in it:

jabber1.domain1 and to another server I added jabber2.domain2 and SAVE

After that no sessions have been made, DNS works fine, I can ping the hosts and they can ping each other, no log files have been made by any of this two jabber servers (???), I disabled firewalls on both servers…

What did I do wrong???

It says No Sessions

and also…

] Connection closed before session established


2005.08.24 20:28:10 [org.jivesoftware.messenger.net.SocketReader.run(SocketReader.java:145 is my router the routes between those 2 networks

Message was edited by: