Giter Club home page Giter Club logo

Comments (5)

caobo171 avatar caobo171 commented on June 23, 2024 1

Oh, it depends on your device, some device use UDP, some use TCP, I covered it in my code, but I didn't see a device use port 80 before, it usually uses port 4370 both for TCP or UDP

from node-zklib.

riadh2002 avatar riadh2002 commented on June 23, 2024

Thanks,

it seems the TCP error is also thrown if a pointing device is outside the local network example: ip=device.ddns.net that resolves to 80.90.100.110, even-though both TCP80 and UDP4370 ports are open and the device is accessible using ZK software

ZKError {
err: Error: connect ETIMEDOUT 80.90.100.110:4370
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16) {
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
syscall: 'connect',
address: '80.90.100.110',
port: 4370
},
ip: 'device.ddns.net',
command: 'TCP CONNECT'
}

I wonder if there is a port problem here?

from node-zklib.

riadh2002 avatar riadh2002 commented on June 23, 2024

Hello again,

OK using your comment about port 4370 as UDP and TCP, I opened port 4370 on TCP and tried and it worked!!!

So for this to work, port 4370 must be open on both TCP and UDP and the program chooses which one to use.

But one issue is when the program chooses TCP, the getUsers will not return the password and Card Number?

thank you

from node-zklib.

caobo171 avatar caobo171 commented on June 23, 2024

Thanks,

it seems the TCP error is also thrown if a pointing device is outside the local network example: ip=device.ddns.net that resolves to 80.90.100.110, even-though both TCP80 and UDP4370 ports are open and the device is accessible using ZK software

ZKError {
err: Error: connect ETIMEDOUT 80.90.100.110:4370
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16) {
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
syscall: 'connect',
address: '80.90.100.110',
port: 4370
},
ip: 'device.ddns.net',
command: 'TCP CONNECT'
}

I wonder if there is a port problem here?

I think it's my lib's problem, but I can't fix this now with my resource, all my test devices are used in my company so it's hard for me to request them open another port

from node-zklib.

caobo171 avatar caobo171 commented on June 23, 2024

Hello again,

OK using your comment about port 4370 as UDP and TCP, I opened port 4370 on TCP and tried and it worked!!!

So for this to work, port 4370 must be open on both TCP and UDP and the program chooses which one to use.

But one issue is when the program chooses TCP, the getUsers will not return the password and Card Number?

thank you

glad to hear that, the missing properties is caused by lacking document, I don't know how to extract it :(

from node-zklib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.