无法从我的ipcamera得到回应 [英] Could not get reponse from my ipcamera

查看:149
本文介绍了无法从我的ipcamera得到回应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hellos i could not get response from my ipcamera ,it build with no error but i guess the 
ip address is wrong.How can i get the correct address of my ip camera. Both the ipcamera
and PC are connected to same network named Almajilis.i get the address from my mobile 
that is connected to the same network .i am new to ipcamera i need help many thanks.





我尝试过:





What I have tried:

using System.Web;
using System.Net;
using System.IO;
..
..
..
    private void ButStartClick(object sender, EventArgs e)
        {
            GetFrame();
        }

        private void GetFrame()
        {
            //string sourceURL = "http://192.168.0.102";
            string sourceURL = "http://192.168.0.102/jpg/image.jpg";
            //"http://192.168.0.102:4747";

            byte[] buffer = new byte[1280 * 800];
            int read, total = 0;
            HttpWebRequest req = (HttpWebRequest)WebRequest.Create(sourceURL);
            WebResponse resp = req.GetResponse();
            Stream stream = resp.GetResponseStream();
            while ((read = stream.Read(buffer, total, 1000)) != 0)
            { total += read; }
            Bitmap bmp = (Bitmap)Bitmap.FromStream(new MemoryStream(buffer, 0, total));
            pictureBox1.Image = bmp;
        }

推荐答案

如果你不知道相机的IP地址,你将不得不找到通过阅读相机上的文档或询问知道相关信息的人。



如果您根本没有更改相机上的任何设置,可能是得到一个默认地址或从DHCP获取一个地址。如果是后一种情况,你必须咨询你为其分配给摄像机的地址输出IP地址的任何设备。
If you don't know the IP address of the camera, you're going to have to find out either by reading the documentation on the camera or asking someone who does know about it.

If you didn't change any settings on the camera at all, it's probably got a default address or it picked up an address from DHCP. If the latter is the case, you'll have to consult whatever device you have dolling out IP Address for the address it assigned to the camera.


你可以使用像这样的工具Wireshark 并监控将ip摄像头直接连接到本地网络端口时会发生什么情况。

您还可以通过Google获取ip摄像头的品牌和型号,看看制造商是否有任何产品提供默认IP地址的下载文档。

当您输入正确的IP地址时,大多数ip camera都会在浏览器中显示设置页面。



大多数制造商都有某种工具来检测和编辑IP地址。

在连接到默认的IP地址之前,通常以 192.168 开头,它在高级ip4网络设置下添加可能很方便,请参阅: Windows 7 :高级网络配置| Pluralsight [ ^ ]
You can use a tool like Wireshark and monitor what happens when you connect the ip camera directly to a local network port.
You can also Google for the brand and model of the ip camera and see if the manufacturer has any documentation for download which mentions the default ip address.
Most ip camera's display a setup page in your browser when you enter the correct ip address.

Also most manufacturers have some kind of tool for detecting and editing the ip address.
Before you can connect to a default ip address, which often begins with 192.168, it might be handy to add that under "Advanced" ip4 network settings, see: Windows 7: Advanced Network Configuration | Pluralsight[^]


你可以连接ip camera的方式取决于很多因素...



如果你试试通过局域网访问您的IP摄像头,地址看起来很有希望。如果您尝试通过WAN访问您的IP摄像头,则地址错误。请阅读我的评论。



我建议按照Dave i Rick在答案中提供的说明,特别是关于相机提供商,型号等...



此外,请看一下这些样本:

从各种视频设备捕获实时视频。 [ ^ ]

相机视觉 - C#视频监控 [ ^ ]

基于IP的相机示例 [ ^ ]
The way you can connect an ip camera depends on many factors...

If you try to access your ip camera via LAN, an address looks promisingly. If you try to access your ip camera via WAN, an address is wrong. Please, read my comment.

I'd suggest to follow the instruction which Dave i Rick provided in their answer, especially about camera provider, model, etc...

Additionally, take a look at these samples:
Capture Live Video from various Video Devices.[^]
Camera Vision - video surveillance on C#[^]
IP-based Camera Sample[^]


这篇关于无法从我的ipcamera得到回应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆