OpenCV cv2.VideoCapture with udp cameras

Hey everyone,

I am having hard time with cv2.VideoCapture in Python.

Problem:
I have two cameras (say camera A and camera B) each connected to my laptop through Wi-Fi adapter. So each camera has its own IP address.
These two cameras have UDP protocol type (Fixed by the manufacturer). In the python, when I try to livestream from both cameras, only one camera’s code works and the other camera’s code through an error.

Reason:
Based on my google search, I concluded that OpenCV is preprogrammed to read always from localhost address (0.0.0.0) if the protocol type is UDP.

So, I want to know how I can change this localhost address in cv2.VideoCapture

I good at Python but not that good at C++, so if the solution is in C++, kindly post it in details

call getBackendName. is it ffmpeg? gstreamer?

https://docs.opencv.org/3.4/d8/dfe/classcv_1_1VideoCapture.html#a4576e03f447abfdbd602c0809824ec03