简体   繁体   English

IP 摄像头在端口 1024 上工作,但在 ONVIF 的端口 1025 上工作

[英]IP Camera working on port 1024 but not on port 1025 for ONVIF

I have a problem with my IP Camera.我的 IP 相机有问题。 I can enter the camera feed successfully on port 1024 which I have configured in the IP Camera and the router on this address in Chrome:我可以在我在 IP 摄像头和 Chrome 中此地址上的路由器中配置的端口 1024 上成功输入摄像头馈送:
http://192.168.1.4:1024/web/admin.html http://192.168.1.4:1024/web/admin.html

Now there is an ONVIF setting for the IP Camera which I have set like this on port 1025:现在我在端口 1025 上设置了 IP 相机的 ONVIF 设置:
在此处输入图像描述

I have also on the router done port forwarding for both port 1024 and 1025 like this:我还在路由器上完成了端口 1024 和 1025 的端口转发,如下所示:
在此处输入图像描述

Now when I enter the below URL in the Chrome Browser, I get the below error:现在,当我在 Chrome 浏览器中输入以下 URL 时,出现以下错误:
http://192.168.1.4:1025/web/admin.html http://192.168.1.4:1025/web/admin.html
<faultcode>SOAP-ENV:Client</faultcode> <faultstring>HTTP GET method not implemented</faultstring>

I wonder what this means and why no stream is coming for the above URL on port 1025?我想知道这意味着什么,为什么没有 stream 用于端口 1025 上的上述 URL?
在此处输入图像描述

[![enter image description here][3]][3]

I see two issues here:我在这里看到两个问题:

  1. Accessing the ONVIF interface through a browser通过浏览器访问 ONVIF 界面
  2. Streaming and NAT traversal流式传输和 NAT 穿越

For the first problem, ONVIF works with soap, and therefore it expects to have POST requests.对于第一个问题,ONVIF 与 soap 一起工作,因此它预计会有 POST 请求。 Your browser thinks that it is connecting to a web page and sends a HTTP GET request that makes no sense for soap-based protocols, such as ONVIF.您的浏览器认为它正在连接到 web 页面并发送 HTTP GET 请求,这对于基于肥皂的协议(例如 ONVIF)没有意义。

The second problem is that your router is doing NAT, and moving RTSP streams through NAT is painful.第二个问题是你的路由器正在做 NAT,通过 NAT 移动 RTSP 流很痛苦。 You will find a lot of literature for VOIP, that uses RTSP and here the problem is exactly the same.你会发现很多使用 RTSP 的 VOIP 文献,这里的问题是完全相同的。 You have two possible solutions:您有两种可能的解决方案:

  1. Using HTTP as transport for your video instead of any other transport.使用 HTTP 作为视频的传输,而不是任何其他传输。 This is the only NAT-friendly transport in ONVIF这是 ONVIF 中唯一的 NAT 友好传输
  2. Using a router that supports full cone NAT, configuring several rules in the router ahve making sure that the camera uses always the same ports for streaming.使用支持全锥形 NAT 的路由器,在路由器中配置多个规则以确保摄像机始终使用相同的端口进行流式传输。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM