Skip to main content
Skip table of contents

Network Commands

Last updated: 2026/1/7 23:11:39

Path To

Name

Description/Function

/api/network

/connectionspeed

Get the network link speed in Mbps.

/api/network

/enabledhcp

Enable DHCP on the camera.

/api/network

/enablestaticip

Enable static IP.

/api/network

/enablestaticip/{ip}/{gateway}/{dns1}/{dns2}/{subnetmask}

Enable static IP.

/api/network

/get

Get the network state.

/api/network

/staticfallbackseconds/{seconds}

Sets the number of seconds to delay before falling back to static IP.

/connectionspeed

Description

Get the network link speed in Mbps.

Method

Get

Example

CODE
http://IP_ADDRESS:8080/api/network/connectionspeed

Response

Link speed.

Response Type

Number

Response Example

CODE
1000

/enabledhcp

Description

Enable DHCP on the camera.

Method

Get

Example

CODE
http://IP_ADDRESS:8080/api/network/enabledhcp

Response

None

/enablestaticip

Description

Enable static IP.

Method

Post

Example

CODE
http://IP_ADDRESS:8080/api/network/enablestaticip

Body

CODE
{
  "IPAddress": "10.0.0.50",
  "Gateway": "10.0.0.1",
  "DNS1": "1.1.1.1",
  "SubnetMask": "255.255.255.0",
  "DNS2": "1.0.0.1"
}

Response

None

Explanation

Task

/enablestaticip/{ip}/{gateway}/{dns1}/{dns2}/{subnetmask}

Description

Enable static IP.

Method

Get

Example

CODE
http://IP_ADDRESS:8080/api/network/enablestaticip/192.168.2.199/192.168.2.1/8.8.8.8/8.8.4.4/255.255.255.0

Parameter(s):

֍ Ip: IP Address to set.

֍ Gateway: Gateway to use.

֍ Dns1: DNS1 to use.

֍ Dns2: DNS2 to use.

֍ Subnetmask: Subnet mask to use.

Response

None

/get

Description

Get the network state.

Method

Get

Example

CODE
http://IP_ADDRESS:8080/api/network/get

Response

The current network state.

Response Type

JSON object

Response Example

CODE
{
  "DNS1": "8.8.8.8",
  "DNS2": "8.8.4.4",
  "Gateway": "192.168.2.1",
  "IPAddress": "192.168.2.199",
  "IsStaticIP": "True",
  "StaticIPAddress": "192.168.2.199",
  "StaticFallbackSeconds": "30",
  "SubnetMask": "255.255.255.0"
}

/staticfallbackseconds/{seconds}

Description

Sets the number of seconds to delay before falling back to static IP.

Method

Get

Example

CODE
http://IP_ADDRESS:8080/api/network/staticfallbackseconds/50

Parameter(s):

֍ Seconds: The number of seconds. Default=50.

Response

None

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.