This code is correctly executed on the client on the same subnet as the camera:
mycam = ONVIFCamera('192.168.0.105', 8999, 'admin', 'password', 'wsdl/')ptz_service = mycam.create_ptz_service()ptz_conf = ptz_service.GetConfigurations()
But this does not work when I try to connect through a router with a configured port forwarding. create_ptz_service returns object contained local camera network address, and i can't connect to camera using this address. Trying to change xaddr is no effect.
This code is correctly executed on the client on the same subnet as the camera:
mycam = ONVIFCamera('192.168.0.105', 8999, 'admin', 'password', 'wsdl/')
ptz_service = mycam.create_ptz_service()
ptz_conf = ptz_service.GetConfigurations()
But this does not work when I try to connect through a router with a configured port forwarding. create_ptz_service returns object contained local camera network address, and i can't connect to camera using this address. Trying to change xaddr is no effect.