Open twxia opened 8 years ago
Hello,
mjpeg-relay opens two ports: one for Web Sockets and one for standard HTTP clients. By default, the HTTP port is 54321 and the WebSockets port is 54322. You are providing a different WebSocket port by specifying the argument -w 6004
, but you also need to provide a different port for the HTTP server, by providing the argument -p <port here>
Try this:
python relay.py -p 5003 -w 6003 "http://my-ip/video.cgi"
python relay.py -p 5004 -w 6004 "http://my-ip-2/video.cgi"
That should work :)
@OliverF Oh I see :+1: Thanks ~
I think If there are some options can control status page (like basic auth) or can only start one port (like just socket or just http) It'll be great :smile:
When I want to create multiple socket relay will cause below problem:
python relay.py -w 6003 "http://my-ip/video.cgi"
python relay.py -w 6004 "http://my-ip-2/video.cgi"