Start mjpeg_streamer only localhost?

Online a lot of examples of how to start broadcasting over the network for mjpeg_streamer. How to ensure that the broadcast only localhost on a specific port, not giving the stream somewhere else? In Google not found any threads, sorry.

And Yes — I need to make a thread on the web page for embedding. I like mjpeg_streamer due to the fact that not eating resources, but that it should be able to set a password, not comforting. How is it possible at least to improve the safety in this plan? Or need to use something else?

Use the web server cherrypy
October 3rd 19 at 04:10
2 answers
October 3rd 19 at 04:12
I think you need to create a rule in iptables for outgoing traffic from that port.
October 3rd 19 at 04:14
To only listen on a certain ip (ie on localhost) it can not.
But what you do not like HTTP Basic Auth, which it does?
But you can also get:
iptables -A INPUT -s --dport 1234-j ACCEPT
iptables -A INPUT --dport 1234-j DROP
Port 1234 and listens only localhost. An optional and type packages using -p to specify. - aurelio_Willms commented on October 3rd 19 at 04:17
I just didn't know about how to ambernath stream into a web page and correctly enter the password in the link =) it so happened —
<img src="http://username:password@">
. In principle, I use a password in conjunction with the rule. Thank you! - Emory commented on October 3rd 19 at 04:20

Find more questions by tags LinuxVideo broadcast