套接字 IO 无法在公司网络内连接 [英] Socket IO fails to connect within corporate networks

查看:58
本文介绍了套接字 IO 无法在公司网络内连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用 socket.IO 和 nodeJS.让我的网络应用程序与他们一起正常工作.后来找朋友在办公机器上试了一下,发现连接不上.

I am just getting to grips with socket.IO and nodeJS. Got my web app working ok with them. I then got a friend to try it out at work on an office machine and found that it failed to connect.

我设置了这两个测试用例:

http://thebeer.co/labs/rt/chat.php (此处的服务器 JS) - 这是 socket.IO 聊天示例.

http://thebeer.co/labs/rt/test.php (服务器JS)

他们都为他失败了.我还有一个朋友在大学计算机上尝试,但也连接失败!在被告知较低的端口号不太可能被安全网络阻止后,我尝试过侦听端口 8100、8080 和 81-90.

Both of them fail for him. I also got a friend to try on a University computer and that too failed to connect! I've tried node servers listening on ports 8100, 8080, and 81-90 after being told that lower port numbers are less likely to be blocked by secure networks.

真的不明白,让每个人都可以访问实时功能非常重要,我做错了什么?

Really don't understand, it is very important that that real-time functionality is accessible to everyone, what am I doing wrong?

如何让 socket.IO 连接到安全的办公室和大学网络?

推荐答案

许多大型企业网络将阻止除端口 80 (http) 和端口 443 (https) 之外的所有内容用户.尝试将所有内容放在这两者之一上以获得最大兼容性.

A lot of big corporate networks will block everything other than port 80 (http) and port 443 (https) for most of their users. Try and put everything over one of those two for maximum compatibility.

这篇关于套接字 IO 无法在公司网络内连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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