skip to Main Content

I have created a site that connect ZKTECO K40 device. The connection Method is pretty simple:

from zk import ZK, const
zk = ZK('192.168.1.13', port=4370, timeout=5)
conn = zk.connect()

This makes a connection while running from a local host connecting in the same network.

But after hosting the site, the site is not able to ping to the device and cannot connect to the device.

How can I connect to the device connected on pc local network from a hosted django site? I have my site hosted on Cpanel.

enter image description here

2

Answers


  1. From the server, a machine which is connected to some local network can not be connected. You have to use cams biometric api for communicating your biometric device from the remotely hosted application.

    Login or Signup to reply.
  2. You can use https://www.zerotier.com/ – to expose the device over the internet and then connect it. It’s not advisable. but thats one way.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search