Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
duvu #1
Member since Oct 2010 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: No local connection between agsXMPP and OpenFire 3.6.
Hello

My name's Dave, and i'm pretty new with OpenFire and agsXMPP.

I'm using it as a java-c#-bridge to communicate between different modules of a software that has been written in different programming languages (mostly java and c#). It all works fine, but in the end I've got one issue with a machine, that i can't solve by myself.

First of all: I'm using smack API on Java side. It works just fine.
My real problem is agsXMPP2008 on C# side (Visual Studio 2008).

Basically i'm running a local OpenFire 3.6.4 Server for communication between different modules of my software. It works like a charm on most machines (Vista, W7, Win XP, different VMs), but there is one desktop computer - a Windows XP Prof. SP3 - that gives me troubles. On that machine the Java Modules just work fine. They connect to OpenFire and are listed in the "sessions" tab. Unfortunately the C#-Module doesn't work at all. It's connection state won't change from "connecting" to "connected". Also there are no errors or events logged by OpenFire. It's actually as if the module never tried to connect at all. Again: The very same combination of Modules and OpenFire works just fine on all my other machines.

Another strange thing: it is possible to connect with the mentioned C#-Module from an extern machine to the OpenFire Server of the "problem"-machine and vice versa to connect with the C#-Module from the "problem"-machine to an extern OpenFire Server. Only thing that apparently doesn't work is the connection between agsXMPP and a local OpenFire Server on that specific machine.

Maybe someone of you experienced the same problem and may have a solution for me.

Thank you in advance,
Dave
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
is ipv6 enabled on this machine and the server machine? ipv6 enabled machines can cause problems because Openfire listens by default only to v4 addresses. When the dns servers returns a v6 address then the connect will fail. A workaround is to specify the ip adress manual in the Hostname property.
Or a firewall which blocks your app. Have you tried to debug your app and agsXMPP on this machine?

Alex
Avatar
duvu #3
Member since Oct 2010 · 2 posts
Group memberships: Members
Show profile · Link to this post
Hi Alex,

Thanks a lot for your reply!

Some Weeks ago I had seemingly the same problem on an ALL machines. That's when I found out about the IPv6-Problem. It solved my problems on almost every machine expect that one Win XP Desktop. Firewall is completely off. I also uninstalled all kinds of Antivirus software (it's an old machine I only use to test software, so i can take that risk).

The server machine and the client machine are the same. Using two different machines for client and server works fine. Using same machine for client and server won't connect.

I'll try debugging today.

Cheers,
Dave
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by duvu:
The server machine and the client machine are the same. Using two different machines for client and server works fine. Using same machine for client and server won't connect.

I'll try debugging today.

try setting the v4 ip address in the Hostname property.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS