------解决方案-------------------- var req = WebRequest.Create("http://www.hik-online.com/xxxxx") as HttpWebRequest;
string ip = req.GetResponse().ResponseUri.Host;
------解决方案--------------------
var req = WebRequest.Create("http://www.hik-online.com/xxxxx") as HttpWebRequest;
string ip = req.GetResponse().ResponseUri.Host;
这不就是嘛 ------解决方案-------------------- lUserID = HCNetSDK.NET_DVR_Login_V30("192.168.1.1", 8000, "admin", "12345", out dev);
if (lUserID == -1)
{
return;
}
需要端口吧。
博客园介绍 C# 海康DVR客户端开发
http://www.cnblogs.com/over140/archive/2009/10/22/1588343.html