Skip to main content

GetPortConfig

Retrieves the port configuration of the device, including HTTP, HTTPS, RTSP, and other service ports.

FieldValue
Endpoint/GetPortConfig
MethodPOST or GET
ProductsIPC, NVR
Request BodyNone
Version Note

v1.9 only. This endpoint has been tested on v1.9 firmware. Availability on v2.0 devices has not been confirmed.


Expected Response Fields

The response contains the device's configured service ports:

FieldDescription
HTTP portWeb interface and API port (default: 80)
HTTPS portSecure web interface port (default: 443)
RTSP portVideo streaming port (default: 554)
Other service portsAdditional ports for SDK, ONVIF, etc.

Notes

  • This is a read-only endpoint for retrieving the current port configuration.
  • Knowledge of the configured ports is important for constructing correct API URLs and RTSP streaming URLs.
  • If the HTTP port has been changed from the default (80), you must include the port in all API request URLs: http://<host>:<port>/endpoint.
  • Port configuration changes are typically made through the device's web interface.