S
S
Sam Stay2014-09-28 17:03:35
Video capture
Sam Stay, 2014-09-28 17:03:35

How to display the image from the surveillance camera on a web page?

Good day!
Can you please tell me how to display an image on a web page.
I have motion set up on my local server. I can add a camera image display to a web page. For example, with this code:

<html>
<img src="http://192.168.0.5:8081/">
</html>

The camera is not IP. A regular webcam connected via USB to the server.
If you look from the internal network, then it is normally displayed accordingly. But if you look from outside, then for obvious reasons, the image is not displayed. If you change the IP address in the code to external, I see the image from the outside, but not from the inside.
So the question is ... How can I make the image from the camera displayed both inside the network and from outside?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2014-09-28
@daapp

To do this, you need to understand how the network works.
For example, if there is a router behind which there is a computer with a camera, then configure the forwarding of the desired port on the router to the port of the computer. Then the camera will be accessible from the inside at the internal address + port, and from the outside - at the external address + port

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question