使用xmpp和防火墙聊天Web应用程序 [英] chat web application with xmpp and firewall

查看:103
本文介绍了使用xmpp和防火墙聊天Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是用于聊天的asp.net网络应用程序,使用agsxmpp和signalR开发整合谷歌聊天和Facebook聊天。



我们使用这些设置来建立一个xmpp连接:



This is asp.net web application for chatting, developed using agsxmpp and signalR to integrate google chat and facebook chat.

We use these settings for establishing an xmpp connection:

XmppConnection = new XmppFacebookClientConnection();((XmppFacebookClientConnection)XmppConnection).ApiKey = ApplicationKey;
((XmppFacebookClientConnection)XmppConnection).AccessToken = AccessToken;
XmppConnection.Server = "chat.facebook.com";
XmppConnection.Port = 443;
XmppConnection.AutoAgents = true;
XmppConnection.AutoRoster = true;
XmppConnection.UseSSL = true;
XmppConnection.UseStartTLS = true;
XmppConnection.Priority = 0;
XmppConnection.UseCompression = true;
XmppConnection.AutoResolveConnectServer = false;
XmppConnection.ClientVersion = "1.0";





聊天应用程序在不受任何防火墙保护的计算机上正常工作,但是当我们尝试从受防火墙保护的计算机访问同一个应用程序时,无法建立连接。 />


我们应该做些什么才能通过防火墙?我的代码中是否可以执行某些操作,或者用户是否需要更改其防火墙设置?怎么样?



The chat application works fine on machines which are not protected by any firewall, but when we try to access the same app from a firewall protected machine the connection is not established.

What should we do to get 'through' the firewall? Is there something I can do in my code or do the users need to change their firewall settings? How?

推荐答案

这篇关于使用xmpp和防火墙聊天Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆