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
445 stars 146 forks source link

Can't connect to camera over NAT #61

Closed mechwave closed 3 months 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 2 years ago

2 years have passed, same stuff)

visual-engines commented 4 months ago

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

I see there are three issues related to this bug:

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

FalkTannhaeuser commented 3 months ago

Done

DrissiReda commented 3 months ago

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.

MikeMint commented 1 month ago

Same :(