+1^^^.
Open browser and log into db's webGUI using its IP address, username and password.
Go to "Device Settings" (the gear symbol at upper right) => "Network" => "Advanced" (scroll down) => "Port Settings" and enable RTMP, RTSP and ONVIF then click on "Save" at lower right.