I am connecting to biometric device using API connect_net() which takes two parameters as ip address and port number. I am using there dll called zkemkeeper.dll .In there SDK there have given default port number as 4370. I want to know if I can use any other port number other than 4370..

Dani AI

Generated

Short answer: changing the port is possible only if the device firmware or vendor tools allow it. As asked, the SDK-side connection must use whatever TCP port the device is actually listening on. was right that it depends on the device; correctly notes some models let the port be edited in their network/communication settings while others stay fixed to the factory value.

Where to look and what to do: check the device's on‑screen menu or its web/management interface for a "network" or "communication" (TCP) port setting. Vendor management software can also display or change the port for many ZKTeco-type devices. If the port can be changed, pick an unused TCP port (preferably >1024 to avoid well-known service conflicts), save the change and reboot the device if required. If there is no exposed setting, the device is likely fixed to its factory port and the vendor manual or support will be definitive.

Quick tests to confirm the port is open (replace the IP and port as needed):

# Windows PowerShell
Test-NetConnection -ComputerName 192.168.1.201 -Port 4370

# Telnet (when available)
telnet 192.168.1.201 4370

# Linux/macOS (nmap)
nmap -p 4370 192.168.1.201

Practical cautions and best practices: update any client/SDK calls to use the new port, open/forward the port on firewalls or routers if accessing across subnets/NAT, and document the change because some vendor apps and integrations expect the factory value. If the device cannot change port, consider a router-level port forward or a small TCP proxy on the same LAN to map a different external port to the device’s fixed port. When in doubt, consult the device manual or vendor support before modifying ports.

Recommended Answers

All 2 Replies

I want to know if I can use any other port number other than 4370

That depends on the configuration of your biometric device.

In some device port is visible. In those devices, you can modify the default port and use the same at your program. If port is not visible at the device, then it is , by dafault 4370.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.