Dahua P2P Connection with API (without Dahua's App)

trivedir

n3wb
Joined
Oct 21, 2022
Messages
2
Reaction score
1
Location
Canada
I have Dahua cameras installed in my home with P2P enabled. I am able to stream with the help of Smart PSS and DMSS by adding Serial Number, Username and Password through P2P.

Now, I would like to connect with NVR remotely with the help of API with just my SN Number. Note: I have not enabled port forwarding, and I know the local IP address but not he global one.

I have also tried the following with my local IP address:
rtsp:/USERNAME: PASSWORD@192.168.1.108/cgi-bin/realmonitor.cgi?action=getStream&channel=1&subtype=0

But, since I am not in the area of my LAN, it didn't worked for me.
So, I would like to know whether there is any API available to connect with Dahua P2P Server?

I will appreciate if you can help me with this.
 
Last edited:

jack7

Pulling my weight
Joined
Mar 21, 2019
Messages
321
Reaction score
239
Location
USA
Using SmartPSS or DMSS, you can connect to Dahua NVR using P2P, and Liveview or Playback your NVR cameras.
 

trivedir

n3wb
Joined
Oct 21, 2022
Messages
2
Reaction score
1
Location
Canada
Yes, I am able to live stream through SmartPSS and DMSS.

However, I would like to build my own algorithm on top of live stream of camera (I am Machine Learning and Computer Vision Engineer). So, I need to have stream without using SmartPSS / DMSS.
 

cctv-dave

Getting the hang of it
Joined
Mar 25, 2021
Messages
118
Reaction score
79
Location
yes
Look at the Dahua NET sdk, tho I'm not 100% sure it handles the P2P
 
Top