mosquitto及websocket的HTML客户端连接问题

服务器mosquitto 及 websocket 已经安装好了,
配置:config.mk WITH_WEBSOCKETS:=yes
配置:mosquitto.conf
35 pid_file /var/run/mosquitto.pid
43 user root
136 port 1883
144 max_connections -1
277 listener 36036
297 protocol websockets
513 allow_anonymous true

启动:mosquitto -c /etc/mosquitto/mosquitto.conf
1513821115: mosquitto version 1.4.11 (build date 2017-12-19 14:12:55+0800) starting
1513821115: Config loaded from /etc/mosquitto/mosquitto.conf.
1513821115: Opening websockets listen socket on port 36036.
1513821115: Opening ipv4 listen socket on port 1883.
1513821115: Error: Address already in use
mosquitto_sub mosquitto_pub 正常订阅和发布;

用下面HTML客户端测试:
http://blog.csdn.net/qq_28877125/article/details/78350479
http://blog.csdn.net/a358763471/article/details/44200401
http://blog.csdn.net/M348915654/article/details/53616837
都没有连上服务器;
帮我找找问题在哪

3个回答

csdn_8888v
csdn_8888v 谢谢 这是唯一回答
一年多之前 回复

谢谢,服务器测试已经正常,是浏览器客户端连不上服务器

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!