Trouble with connecting ZKTeco Fingerprint Device Outside LAN Network

Hello, my friends.

I have a ZKTeco fingerprint device outside of my LAN network and another one inside my LAN. The one inside works normally and fetches data, but the outside one does not, despite my attempts to change the API key and secret for it in the local_config.py file.
here is my configuration for it:


something that I notice that there is a .git folder in the one inside LAN and this file doesn’t exist in the one outside.

and this for one outside as you can see

I tried to reinstall it but without avail.

Has anyone experienced a similar situation?