fananimi / pyzk

Unofficial library of zkteco fingerprint attendance machine
GNU General Public License v2.0
489 stars 319 forks source link

connect with fingerprint device using vpn #178

Closed MohamedElnagar94 closed 1 year ago

MohamedElnagar94 commented 1 year ago

It is possible to connect with fingerprint device using VPN or something else? I have fingerprint device and i want to connect with it from anywhere

kurenai-ryu commented 1 year ago

yes

MohamedElnagar94 commented 1 year ago

how can i do that?

kurenai-ryu commented 1 year ago

that goes beyond the scope of this library

MohamedElnagar94 commented 1 year ago

you mean it is available in this library or not

MohamedElnagar94 commented 1 year ago
vpnIp = "my_vpn_ip"
portOfFingerprintDevice = 4370
zk = ZK(vpnIp, port=portOfFingerprintDevice , timeout=10,password=0, force_udp=false, ommit_ping=false)
conn = zk .connect()

It will be like that or what !

kurenai-ryu commented 1 year ago

oh! no, no, this library can't do that. I worked with devops to connect zk devices over a vpn, and my host could access them without any problem. but that was infrastructure magic.

MohamedElnagar94 commented 1 year ago

so it is impossible to connect with fingerprint device using VPN in this library for this time

kurenai-ryu commented 1 year ago
vpnIp = "my_vpn_ip"
portOfFingerprintDevice = 4370
zk = ZK(vpnIp, port=portOfFingerprintDevice , timeout=10,password=0, force_udp=false, ommit_ping=false)
conn = zk .connect()

It will be like that or what !

regarding the connection, it will work seamlessly with a vpn ip, that is exactly how I worked over a vpn. but this library can't start a vpn tunnel by itself, that goes beyond the scope of the library