FalkTannhaeuser / python-onvif-zeep

ONVIF Client Implementation in Python 2+3 (using https://github.com/mvantellingen/python-zeep instead of suds as SOAP client)
MIT License
424 stars 138 forks source link

Can't connect to camera over NAT #61

Open mechwave opened 4 years ago

mechwave commented 4 years ago

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.

MikeMint commented 1 year ago

2 years have passed, same stuff)