Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# NET_SDK_GetDeviceIPByName

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    BOOL NET_SDK_GetDeviceIPByName(
        char* sSerIP,
        DWORD wSerPort,
        char* sDvrName,
        char* sDvrIP);

    1
    2
    3
    4
    5
    public static extern Boolean NET_SDK_GetDeviceIPByName(
        string sSerIP,
        UInt32 wSerPort,
        string sDvrName,
        string sDvrIP);

### Function Description

Get the device IP address by device name.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
sSerIPin | char* | NAT server IP.
wSerPortin | DWORD | NAT server port.
sDvrNamein | char* | The name of the device.
sDvrIPout | char* | Device IP address.

### Return Value

- Type：BOOL

- Remark：Returns TRUE if successful, FALSE if failed.

### Remarks

None

Error Code