Member |
Data Type |
Description |
---|---|---|
dwSize |
DWORD |
Structure size. |
struEtherNet |
Array of NET_DVR_ETHERNET_V30 |
Ethernet interface |
struRes1 |
Array of |
Reserved, set to 0. |
struAlarmHostIpAddr |
Listening service IP address |
|
byRes2 |
Array of BYTE |
Reserved, set as 0 |
wAlarmHostIpPort |
WORD |
Listening service port No. |
byUseDhcp |
BYTE |
Whether to enable DHCP: 0xff- invalid; 0-disable, 1-enable |
byIPv6Mode |
BYTE |
Allocation mode of IPv6 address: 0-by router advertisement, 1-by manual setting, 2-by enabling DHCP allocation. |
struDnsServer1IpAddr |
IP address of domain name server 1 |
|
struDnsServer2IpAddr |
IP address of domain name server 2 |
|
byIpResolver |
Array of BYTE |
IP resolver domain name or IP address (if the port No. of device is 8000, the domain name is not supported). |
wIpResolverPort |
WORD |
IP resolver port No. |
wHttpPortNo |
WORD |
HTTP port No. |
struMulticastIpAddr |
Multicast group address |
|
struGatewayIpAddr |
Gateway address |
|
struPPPoE |
PPPoE parameters |
|
byEnablePrivateMulticastDiscovery |
BYTE |
Private multicast search (SADP): 0-default, 1-enable, 2-disable |
byEnableOnvifMulticastDiscovery |
BYTE |
Onvif multicast search (SADP): 0-default, 1-enable, 2-disable |
wAlarmHost2IpPort |
WORD |
Port No. of listening host 2. |
struAlarmHost2IpAddr |
IP address of listening host 2 |
|
byEnableDNS |
BYTE |
DNS address setting mode: 0-automatically get, 1-manually set. |
byRes |
Array of BYTE |
Reserved, set to 0 |
For device only supports the private protocol with version 3.0 or lower, when the parameter byUseDhcp="0xff", you should set the device IP address to null, and then the device will automatically get the DHCP information.
When the parameter byIPv6Mode is set to 0 or 2, setting IPv6 address in the parameter struEtherNet is not required, it will be obtained automatically by the device; when byIPv6Mode is set to 1, you should set IPv6 address. As there are multiple IPv6 addresses, the IPv6 address of current logged-in device may be different with that in struEtherNet.