ofxHTTP::SimpleIPVideoServer videoServer port 3333
ofx::HTTP::JSONRPCServer jsonServer port 3333
Both servers are initialized in the same port, and on setup. Then, on the client side, when the address is then entered, sometimes the video is not shown or the data is not read. And from 10 tries, just a couple of them the client is connected to both of them.
Testing server on a Raspberry Pi 4.
The error on the browser console for the data is:
jquery.jsonrpcclient.js:225 WebSocket connection to 'ws://192.168.1.203:3333/' failed: Error during WebSocket handshake: Unexpected response code: 200 ||$.JsonRpcClient._getSocket|@|jquery.jsonrpcclient.js:225| | --- | --- | --- | --- | ||getSocket|@|jquery.jsonrpcclient.js:51| ||$.JsonRpcClient.call|@|jquery.jsonrpcclient.js:94| ||initConfig|@|main.js:44| ||(anonymous)|@|main.js:37|
While the one for the video is:
192.168.1.203/:32 GET http://192.168.1.203:3333/ipvideo/dual-screen net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
When starting a single server, the client connection rate is 100% for both, so the main question is:
It’s possible to used both servers on the same port?
Or the server needs to be configured in a special way? I mean inside the addons?
Thanks in advance.