Feature Request: make http servers into one http server
we could put webcam server and http control server running on the same port?
if client connect to example:
webcam server start sending MJPEG stream
or something like it
with this we can run motion using only one TCP port
on links that ISP just give one port this could make different
maybe a http dump server parse GET and POST http protocol
and set if we will use webcam or http control....
that's the idea
- 12 May 2005
No. I don't want to do that.
- It is complicated to do. It will add complexity and dependency to Motion. Motion runs each camera as a seperate thread and only the control thread is common and does nothing else than reading and writing to the global context structure.
- In a normal setup you do not want the control port to be public. If you get access to this you have access to running any command with the same user as Motion. It is very dangerous. I am not sure the current Motion authentication on the control port is strong enough to be exposed to the Internet.
- We do not want to build in a full web browser in Motion. It is complex enough already for the control interface. We want to keep a low footprint of Motion.
If you HAVE to serve everything to the public and only through port 80 serve the stream and control through Apache. It has been made strong over the past 20 years.
Use the MjpegProxyGrab
C program that I made for this very purpose.
I believe I recommended the same solution to you for a similar problem.
Did you try it yet? It is easy to install and use.
- 24 May 2005