Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
djahel_t #1
Member since May 2013 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: Could not connect to a local openfire server
Hello,

I am trying to connect to a openfire server with the ConsoleClient project and when I do, I get this error message "No connection could be made because the target machine actively refused it  [fe80 :: 7189: D654: aa6e: DC2A% 17]: 5222"

When I use Spark or Psi, it works very well.

ConsoleClient and my server are running on the same computer.

I read many posts about this subject on this forum but none worked.

I tried to disable IPV6 and use IPV4 but it does not work actually.

This is the code I acutally use in order to fill informations :
  1. Jid jid = new Jid(Console.ReadLine());
  2.  
  3. PrintHelp(String.Format("Enter password for '{0}': ", jid.ToString()));
  4.  
  5. xmppCon.Password = Console.ReadLine();
  6. xmppCon.Username = jid.User;
  7. xmppCon.Port = 5222;
  8. xmppCon.Server = jid.Server;
  9. xmppCon.AutoAgents = false;
  10. xmppCon.AutoPresence = true;
  11. xmppCon.AutoRoster = true;
  12. xmppCon.AutoResolveConnectServer = true;
This post was edited on 2013-05-21, 15:45 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
try to change this:

  1. xmppCon.ResolveSrvRecords= false;
  2. xmppCon.Hostname = "127.0.0.1";
This post was edited on 2013-05-21, 15:56 by Alex.
Avatar
djahel_t #3
Member since May 2013 · 6 posts
Group memberships: Members
Show profile · Link to this post
Quote by Alex:
try to change this:

  1. xmppCon.ResolveSrvRecords= false;
  2. xmppCon.Hostname = "127.0.0.1";

I am sorry but there is no property named "Hostname" in XmppClientConnection class.

Should I use another property?
This post was edited on 2013-05-21, 15:56 by Alex.
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
there is, I guess you are using agsXMPP and posted in the wrong forum category. In agsXMPP it is ConnectServer
Avatar
djahel_t #5
Member since May 2013 · 6 posts
Group memberships: Members
Show profile · Link to this post
First of all, I am sorry for posting in the wrong category and yes I am using agsXMPP framework.

I tried to put "127.0.0.1"  in ConnectServer property and setting AutoResolveConnectServer to false but there was no change.
Avatar
Alex #6
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
make sure that you have the latest code or binary. This must work.
Or try MatriX.
Avatar
djahel_t #7
Member since May 2013 · 6 posts
Group memberships: Members
Show profile · Link to this post
I think I am using a old agsXMPP version (1.10 on my computer). Is that correct? If it is yes, what is the lastest version?
Avatar
Alex #8
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
thats very old.

Either download the latest sources and build it yourself, or download the latest binary from April 28 here:
http://www.ag-software.net/download-directory/
Avatar
djahel_t #9
Member since May 2013 · 6 posts
Group memberships: Members
Show profile · Link to this post
I will use Matrix, I think it is better for my project.

And the lastest matrix version is 1.5.3.5 right?
Avatar
Alex #10
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
yes, latest binaries are always located here:
http://www.ag-software.net/download-directory/

For MatriX please also download the Setup package from here:
http://www.ag-software.net/matrix-xmpp-sdk/download/
Because it includes many example applications.
Avatar
djahel_t #11
Member since May 2013 · 6 posts
Group memberships: Members
Show profile · Link to this post
I am using Matrix and there is no problem at this moment in order to connect send and receive messages from the server.

I thank you alex for your advice.
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