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

add ability to use a camera under nat #48

Open davidea72 opened 5 years ago

davidea72 commented 5 years ago

i have some camera that are in a site accessible from outside then with nat translation this camera when queried reply with their private address and the internal port , i modified the code in client.py to check if the ip address and port in the response are different from that one i use in the connect parameter , and if yes , i rewrite it in the update_xaddrs with my camera works without problem