Global · Attendance and time

Biometric Devices Without a Static IP and Night Shift Calculation

How to reach branch biometric devices without a static IP or an exposed port, and how raw punches, including overnight shifts, become correct pay components.

By LoginHR Editorial Team
Arabic infographic tracing a punch from biometric device to pay component in seven steps, with day cases and off-network device options
On this page
  1. The first wall: the network
  2. "Just put it on the VPN" — and why the conversation stops here
  3. Four ways in, not one
  4. Getting the data in is only half the job
  5. The rulebook: the real difference between systems
  6. Measured numbers, not promises
  7. Questions to ask any vendor before you sign

Every multi-branch company eventually files the same two complaints, and they look unrelated: nobody can reach the biometric device at the branch, and nobody knows how the shift that starts at 11 p.m. should be counted. They are two faces of one problem. The punch is captured, and then there is no engine to carry it to a line on the payslip. Between capture and pay, worked hours disappear, present employees get deducted, and HR spends a week a month in manual spreadsheets nobody can audit.

The first wall: the network

Most branches run on lines with a changing IP address, and some carriers place the subscriber behind carrier-grade NAT, so there is no public address to reach at all. At that point someone proposes the quick fix: forward a port on the router so the server can reach the device directly.

That is the worst option available. A biometric terminal is an embedded appliance that is rarely patched, and exposing it directly to the internet puts it in front of the automated scanning that sweeps the network around the clock. When IT refuses that request, IT is right — it is a security position, not bureaucracy.

"Just put it on the VPN" — and why the conversation stops here

The next proposal is usually a VPN. The idea is sound; the implementation is where it fails. A biometric terminal is a closed embedded device that does not accept third-party software, which means it does not run FortiClient or any other VPN client. The device itself never builds a tunnel.

There are two workable routes:

  • A site-to-site IPsec tunnel between the branch firewall and the head-office firewall, so the subnet the device sits on is inside the tunnel and the server reaches it as if it were local.

  • A relay host at the branch — a small server or a desktop — running the VPN client, reaching the device over the local network and forwarding its data through the tunnel.

The distinction is not academic. It is the difference between an integration that finishes in a day and one that stalls for months because somebody kept waiting for the device to do something it cannot do.

Four ways in, not one

A serious attendance system needs more than one path to the device, because branches are never identical:

  • Pull directly through the manufacturer SDK when the device is reachable on the network.

  • Read the device’s own database when the manufacturer provides no SDK at all.

  • Let the device push its punches to an HTTPS API — the right route for a branch that is genuinely off the network, because the connection starts from the branch outward and needs neither a static address nor an open port.

  • Import the device file, CSV or DAT, as a last resort rather than a default.

One question decides the quality of whichever path you choose: what happens when the line drops for two hours? The correct answer is that punches buffer locally and resend once the link returns, duplicates are removed on a composite key of device, employee and timestamp, and device clock drift is corrected against the server before any calculation runs.

Getting the data in is only half the job

The harder problem starts once the punches arrive. A raw punch is an ID and a timestamp; turning it into a pay component runs through a chain that has to be explicit: a raw store that is never edited, then resolution of the day that owns the shift, then entry and exit tolerance windows, then classification.

Six cases break most systems:

  • Late in — an IN after shift start, measured against the entry tolerance.

  • Early out — an OUT before shift end, after the exit tolerance is applied.

  • Single punch — an IN with no OUT or the reverse, which must never turn automatically into a full-day deduction; it is flagged for review.

  • Absence — no punch, no transaction, no leave on a working day, and only after leave and holidays are excluded.

  • Cross-midnight shift — 11 p.m. to 7 a.m. must be bound to one owning day, not split across two so it surfaces as half a day twice.

  • Overtime by type — before the shift, after it, on the weekly rest day, on a public holiday, and on night shifts, each with its own factor.

The rulebook: the real difference between systems

No two companies calculate attendance the same way, and in many manufacturers the method differs between departments inside the same company: production is not sales is not security. A system that imposes its own method forces the company to rewrite its policy to suit the software, which inverts the order of authority.

The correct order is that the system is tuned to the company rulebook: an independent formula per pay component, a different rulebook per department where it is needed, and changes made without opening code and without waiting for a release.

Measured numbers, not promises

In a performance test on real data — 5,158 employees over 30 days, or 154,740 attendance rows — the full run completed in 1:47 minutes with no manual intervention. More than 70 companies run on LoginHR today, covering over 80,000 employees.

Questions to ask any vendor before you sign

  • Do you support the device if the manufacturer provides no SDK?

  • How do you reach a branch with no static IP without opening a port to the internet?

  • What happens to punches when the line drops for two hours?

  • Which day does a shift from 11 p.m. to 7 a.m. belong to?

  • What happens to an employee who punched in and forgot to punch out?

  • Can each department have a different calculation rulebook, without programming?

  • Is the raw store editable, and does re-running produce the same result?

Can a biometric attendance terminal run a VPN client such as FortiClient?
No. It is a closed embedded device that does not accept third-party software. The workable routes are a site-to-site IPsec tunnel between the branch and head-office firewalls, or a relay host at the branch that runs the VPN client and forwards the device data through the tunnel.
Is port forwarding a safe way to reach a branch attendance device?
No. A biometric terminal is an embedded appliance that is rarely patched, so exposing it directly to the internet puts it in front of the automated scanning that sweeps the network around the clock. IT is right to refuse that request.
Which day should a shift from 11 p.m. to 7 a.m. be counted on?
It must be bound to a single owning day rather than split across two dates, where it would surface as half a day twice. The system resolves which day owns the shift before it applies entry and exit tolerance windows and classifies the day.
Should a single punch turn into a full-day deduction?
No. An IN with no OUT, or the reverse, should never become an automatic full-day deduction. The case should be flagged for review. Absence is a separate case, decided only after leave and public holidays have been excluded.

Related articles

Related LoginHR pages

See LoginHR with your own scope

Choose modules and hosting, then send a request to the LoginHR team.

View pricing