0
我有一個運行OpenFire XMPP服務器的EC2微型實例。我試圖用我本地機器上的Jabber-net
庫連接我的c#+ ASP.NET應用程序到服務器。不幸的是,我收到一個錯誤,說「A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond ***.***.***.***:5222
」。我懷疑這是PORT的問題,但我無法弄清楚。此應用程序是Azure雲應用程序,因此可以通過端口5222從Azure雲應用程序連接到EC2?無法連接到EC2上的OpenFire從C#
我正在使用下面的代碼;
JabberClient JClient = new JabberClient(); JID jid = new JID("user1", "im.domain.com", "");
JClient.User = "user1";
JClient.Password = "admin";
JClient.AutoLogin = false;
JClient.SSL = false;
JClient.OnError += JClient_OnError;
JClient.OnConnect += JClient_OnConnect;
JClient.OnLoginRequired += JClient_OnLoginRequired;
JClient.OnRegisterInfo += JClient_OnRegisterInfo;
JClient.OnRegistered += JClient_OnRegistered;
JClient.OnMessage += JClient_OnMessage;
JClient.Connect();
JClient.Register(jid);
JClient.Close(true);
在此先感謝。
你能否從外部XMPP客戶端訪問您的XMPP服務器添加SRV記錄(如:Gajim )? – Ando 2013-03-13 18:13:44