powered by Jive Software

S2s connection failure

Dear All,

Just intalled two copies of wildfire 2.4*. One on a Fedora Core 4, the other is on a windows. Client on FC in Gaim, and client on WinXP is exodus. I can register new account on from any client on any server and do IM, group chat well if both client use accounts on the same server.

Although I have opened all the neccesary port both udp and tcp on 5222,5223 and 5269, even 7000.

If have account1@server.xp and account2@server.fc4, then neither IM nor group chat is possible. The error shown on the client is " Error 404 remote server not found" . The message on error.log is quoted as follows:


2006.02.17 11:15:33 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:159) Connection closed before session established


What should I do for this? Thank you so much for your help.

Feng Wang

Hi Feng,

please make sure that both server are able to resolve the xmpp.domain name (/server-properties.jsp) of the other server. So “nslookup server.xp” and “nslookup server.fc4” sould always return the same IP address on both servers.

You could also try to use “telnet server.xp 5269” and “telnet server.fc4 5269” on both servers to make sure that connections to port 5269 are possible. Afaik only TCP port 5269 is used for s2s.

LG

Dear LG,

I used the IP addresses directly in the xmpp.domain property. And nslookup is good on both machines.

however, ping 198.0.0.1 5269 and ping 198.0.0.2 5269 hang there without any result.

ping the IP address only is good.

Any more ideas?

Thanks.

yours,

Feng Wang

Hi Feng,

you shouldn’'t “ping” but “telnet” to the port. Using the IP address could be possible, but I think that this is not a recommended way. Usually the clients should use the server names and not IP addresses.

Do you see that a server2server connection was established?

/server2server-settings.jsp - here s2s must be enabled

/server-session-summary.jsp - shows the s2s sessions

Do the logs show some errors? Maybe the debug log can give you valuable information.

LG

Hi guys. Here’'s my debug log when trying to add a contact to my client @domain1 from another server @domain2. Both use wildfire 2.5.0 and soapbox 2.5

thanks for your time.

2006.04.25 11:14:34 Error sending packet to remote server:

java.lang.Exception: Failed to create connection to remote server

at org.jivesoftware.wildfire.server.OutgoingSessionPromise.createSessionAndSendPac ket(OutgoingSessionPromise.java:139)

at org.jivesoftware.wildfire.server.OutgoingSessionPromise.access$300(OutgoingSess ionPromise.java:37)

at org.jivesoftware.wildfire.server.OutgoingSessionPromise$1$1.run(OutgoingSession Promise.java:91)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

2006.04.25 11:15:27 Connect Socket[addr=/192.168.3.119,port=4448,localport=5269]

2006.04.25 11:15:27 AS - Verifying key for host: jabber id: 35389880

2006.04.25 11:15:27 AS - Key was: VALID for host: jabber id: 35389880

2006.04.25 11:15:27 AS - Connection closed for host: jabber id: 35389880

2006.04.25 11:16:15 Connect Socket[addr=/192.168.3.119,port=4449,localport=5269]

2006.04.25 11:16:15 AS - Verifying key for host: jabber id: 54df70dd

2006.04.25 11:16:15 AS - Key was: VALID for host: jabber id: 54df70dd

2006.04.25 11:16:15 AS - Connection closed for host: jabber id: 54df70dd

Hi Pete,

what of the above did you try?

nslookup ok?

unencrypted connection ok?

Please post in a new created thread your server domain names (xmpp.domain or found on /index.jsp) and IP addresses and the trace again, it’'s really annoying to try to overtake a question form someone else.

LG