Subject: Problem connecting to server locally
Good evening,
I have just started working with agsXMPP recently and started learning with this tutorial:
http://www.codeproject.com/Articles/21267/Creating-a-Jabbe…
Having downloaded the sample file, it works perfectly fine with these parameters when connecting to an online jabber server, fex. jabber.de
However, when I try to use my local ejabberd server, it does not connect properly:
Apart from the code you see above I have not changed anything in the listing from TheCodeProject.
When executing the code, XmppClientConnection xmpp.ConnectionState is set to "Connecting" and xmpp.Authenticated is "false".
Using Psi to connect to my local server, I had to modify the hosts file to enable the programme to resolve the pc name "hapi" or "localhost" to the right ip address... But for Psi, connecting with the credentials works now. Still I got these issues with the code above.
Is there anything I am missing out on??
Thanks in advance,
Michael_Heribert
I have just started working with agsXMPP recently and started learning with this tutorial:
http://www.codeproject.com/Articles/21267/Creating-a-Jabbe…
Having downloaded the sample file, it works perfectly fine with these parameters when connecting to an online jabber server, fex. jabber.de
- xmpp.Server = "jabber.de";
- xmpp.Username = "username";
- xmpp.Password = "Passwort";
- string Password = "Passwort"; // is to be used later in the listing
- xmpp.AutoResolveConnectServer = false;
- xmpp.ConnectServer = "85.214.196.40";
However, when I try to use my local ejabberd server, it does not connect properly:
Apart from the code you see above I have not changed anything in the listing from TheCodeProject.
When executing the code, XmppClientConnection xmpp.ConnectionState is set to "Connecting" and xmpp.Authenticated is "false".
Using Psi to connect to my local server, I had to modify the hosts file to enable the programme to resolve the pc name "hapi" or "localhost" to the right ip address... But for Psi, connecting with the credentials works now. Still I got these issues with the code above.
Is there anything I am missing out on??
Thanks in advance,
Michael_Heribert