I set up an Openfire
server (v4.6.6) and created a test
user. I can login as the test
user with both Spark
(on Windows 10) and Xabber
(on Android).
I'm trying to connect to the server with the Artalk.Xmpp:
using Artalk.Xmpp.Client;
var xmpp = new ArtalkXmppClient("143.#.#.133", "test@xmpp", "123", 5222, false);
try
{
xmpp.Connect();
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
I get "SaslException: SASL authentication failed."
error message but as I said the credentials are valid and I can connect with other clients. What is the problem here?
Note 1: I don't have a domain so I have to use the IP of the server.
Note 2: I tried with another library (Sharp.Xmpp) and got the same error.
CodePudding user response:
Finally I solved the problem by changing the Domain name to be exactly as the IP address of the server (previously I set it to be xmpp
) and then using test
instead of test@xmpp
as username.