Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 使用NodeJS、Android、Opera Mobile、Web Socket和HTML5 websocket的远程网络摄像头无法工作_Node.js_Sockets - Fatal编程技术网

Node.js 使用NodeJS、Android、Opera Mobile、Web Socket和HTML5 websocket的远程网络摄像头无法工作

Node.js 使用NodeJS、Android、Opera Mobile、Web Socket和HTML5 websocket的远程网络摄像头无法工作,node.js,sockets,Node.js,Sockets,我对从中获得的代码有问题 我已成功地从npm安装了web套接字。但是websocket不起作用。这是来自firebug控制台的警告: Firefox can't establish a connection to the server at ws://192.168.137.133:8000/. var ws = new WebSocket("ws://192.168.137.133:8000/"), 错误发生在: client.js (line 11) 供参考 我的服务器IP为:

我对从中获得的代码有问题

我已成功地从npm安装了web套接字。但是websocket不起作用。这是来自firebug控制台的警告:

Firefox can't establish a connection to the server at ws://192.168.137.133:8000/.


var ws = new WebSocket("ws://192.168.137.133:8000/"), 

错误发生在:

client.js (line 11)
供参考

我的服务器IP为:192.168.137.1
我的电话IP是:192.168.137.133

谢谢你的回答。
干杯D

您的客户端IP不应出现在任何代码中(谢谢您的回答:)。我已将IP更改为192.168.137.1(服务器),但仍然无法工作。firebug的警告还是一样,我是websocket的新手。我能看看错误日志吗?它在哪里?