python-onvif-zeep icon indicating copy to clipboard operation
python-onvif-zeep copied to clipboard

Can't connect to camera over NAT

Open mechwave opened this issue 5 years ago • 1 comments

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.

mechwave avatar Feb 27 '20 06:02 mechwave

2 years have passed, same stuff)

MikeMint avatar Aug 08 '22 10:08 MikeMint

I've the same problem, but I don't know how to solve it.

I see there are three issues related to this bug:

  • https://github.com/FalkTannhaeuser/python-onvif-zeep/pull/75
  • https://github.com/FalkTannhaeuser/python-onvif-zeep/issues/61
  • https://github.com/FalkTannhaeuser/python-onvif-zeep/pull/48

The older message in these issues has been posted in 2019, however the project looks still alive (currently, the last commit has been pushed 4 months ago).

Actually, in the issue #75, users davidea72 and duborgis proposed a solution (I didn't test if it does actually fix the bug, btw). It has not been merged yet by repo's owner, so @FalkTannhaeuser please review and merge it

visual-engines avatar Aug 02 '24 14:08 visual-engines

Done

FalkTannhaeuser avatar Aug 08 '24 17:08 FalkTannhaeuser

Done

This doesn't work. I tried calling the wsdls and IPs returned are still local. I need this for frigate and even with the #75 merge it doesn't work.

DrissiReda avatar Aug 08 '24 21:08 DrissiReda