title: Not able to connect agsXmpp client to eJabberd server
body: <p>I am using Visual Studio 2010, and the OS is Windows 7, 64-bit. The project I am working on needs XMPP functionality in it; for this, I am using the agsXMPP library. The project type is a WPF client which throws up a window that stays there while my xmpp code is running.</p>
  
  <p>I am running eJabberd 2.1.3 server on the same Windows system on which I am doing the development. I also created multiple accounts on the eJabberd server (like "aaa@mydomain", "bbb@mydomain", and so on) and "friended" them to each other.</p>
  
  <p>For testing connectivity with my client, I am using Pandion Jabber client on Windows and a Xabber client on my Android on the same network. The setup is working fine and the Xabber and Pandion clients are able to exchange messages with each other. Just to ensure that there's no interference, I have temporarily disabled the Firewall.</p>
  
  <p>Problem: I am unable to connect my program to the eJabberd server. The presence is just not shown on the other clients when the window is thrown up. I am using the following code:</p>
  
  <pre><code>    string uname = "aaa", domain_server = "mydomain", resource = "res1", password = "password";
  
      Jid jid = new Jid (uname, domain_server, resource);
  
      XmppClientConnection _xmppConn = new XmppClientConnection (jid.Server);
  
      // This is my development machine's IP address
      _xmppConn.ConnectServer = "192.168.0.101";
  
      _xmppConn.Server = domain_server;
  
      _xmppConn.Open (jid.User, password);
  
      // The event handlers:
      _xmppConn.OnLogin += new ObjectHandler (_xmppConn_OnLogin);
      _xmppConn.OnMessage += new agsXMPP.protocol.client.MessageHandler (_xmppConn_OnMessage);
  
      void _xmppConn_OnMessage (object sender, agsXMPP.protocol.client.Message msg) {
          MessageBox.Show (msg.Body);
      }
  
      void _xmppConn_OnLogin (object sender) {
          MessageBox.Show ("Logged in");
      }
  </code></pre>
  
  <p>The same code is working fine on Facebook chat, when I message the account from another FB account.</p>
  
  <pre><code>    string uname = "&lt;my fb name&gt;", domain_server = "facebook.com", resource = "res1", password = "&lt;my password&gt;";
  
      Jid jid = new Jid (uname, domain_server, resource);
  
      XmppClientConnection _xmppConn = new XmppClientConnection (jid.Server);
  
      _xmppConn.Server = "chat.facebook.com";
  
      _xmppConn.Open (jid.User, password);
  
      // The event handlers:
      _xmppConn.OnLogin += new ObjectHandler (_xmppConn_OnLogin);
      _xmppConn.OnMessage += new agsXMPP.protocol.client.MessageHandler (_xmppConn_OnMessage);
  
      void _xmppConn_OnMessage (object sender, agsXMPP.protocol.client.Message msg) {
          MessageBox.Show (msg.Body);
      }
  
      void _xmppConn_OnLogin (object sender) {
          MessageBox.Show ("Logged in");
      }
  </code></pre>
  
  <p>I have been racking my brains but am just not able to figure out where I may be going wrong. Can somebody please help? Thank you in advance. :)</p>