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 :
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 :
- PrintHelp(String.Format("Enter password for '{0}': ", jid.ToString()));
- xmppCon.Password = Console.ReadLine();
- xmppCon.Username = jid.User;
- xmppCon.Port = 5222;
- xmppCon.Server = jid.Server;
- xmppCon.AutoAgents = false;
- xmppCon.AutoPresence = true;
- xmppCon.AutoRoster = true;
- xmppCon.AutoResolveConnectServer = true;