i'm creating a c++ app using Dahua sdk and i need to connect to the device using p2p. 
The documentation says to set nSpecCap at 19 to use p2p but it doesn't mention the serial number. I tried to pass the SN in pchDVRIP parameter but it doesn't work. 
  
Has anyone used this feature and can explain how to do it?