kamshory / ZKLibrary

ZKLibrary is PHP library for reading and writing data to attendance device using UDP protocol. This library useful to comunicate between web server and attendance device directly without addition program. This library is implemented in the form of class. So that you can create an object and use it functions.
GNU General Public License v2.0
194 stars 176 forks source link

ZKLibrary with Online application #41

Open njovujsh opened 5 years ago

njovujsh commented 5 years ago

This library works only with localhost. When I host the code with it. It can no longer read the ip address/port or even access data!

softyaco commented 5 years ago

did you find solutions for that ..

softyaco commented 5 years ago

please share

njovujsh commented 5 years ago

I am looking for the solution too @softyaco

plonknimbuzz commented 5 years ago

if your web cant reach device IP. you must create cron from localhost server to upload data into your online web

cron: local server =>get data from device => send only new data to online server

if your device have ip public, you will not meet this problem

novpiseth commented 5 years ago

did you try to forward port with your public IP? it port is 4370

njovujsh commented 5 years ago

Well when I transfer the code from local host to the Cpanel. Things Jam

On Tue, Aug 14, 2018 at 3:43 AM novpiseth notifications@github.com wrote:

did you try to forward port with your public IP? it port is 4370

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kamshory/ZKLibrary/issues/41#issuecomment-412783727, or mute the thread https://github.com/notifications/unsubscribe-auth/AGHQvSa2UUFLHywAFwWuuKNlqjBu4-k0ks5uQn-dgaJpZM4Vw3Rp .

novpiseth commented 5 years ago

what IP address you had put? if local IP your website could not accessible to fingerprint device

njovujsh commented 5 years ago

i put the IP address of the Time Attendance machine. Then tried to access the hosted website on the pc that Machine is connected

On Wed, Aug 15, 2018 at 5:16 AM novpiseth notifications@github.com wrote:

what IP address you had put? if local IP your website could not accessible to fingerprint device

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kamshory/ZKLibrary/issues/41#issuecomment-413141223, or mute the thread https://github.com/notifications/unsubscribe-auth/AGHQvUlQFDs8fgIwVae7EvgEWqZy_DL1ks5uQ-cBgaJpZM4Vw3Rp .

plonknimbuzz commented 5 years ago

congrats @njovujsh , i think this issue should be ciosed now

malikatiq786 commented 5 years ago

Please Describe step wise facing issue from many days

wombiro commented 3 years ago

Log in to your router, Learn how to port forward. Configure the device ip and port after getting your public IP. Finally access your device from web