DentalStation LAN Setup
=======================

Connects UP3D DentalStation on a client PC to the DentalStation server on another PC
in the local network. The client sees the same jobs and can open old CAM2 blanks for
nesting, writing directly into the server's files.

FIELDS
  Server IP            IP address of the server PC (e.g. 192.168.1.131)
  Technician ID        ID from Settings > Technician Management on the server (e.g. 007),
                       not the technician name
  Technician name      informative only
  Technician password  password of that technician

  Use a different technician on the client than the one logged in on the server,
  otherwise the two PCs keep logging each other out.

BUTTONS
  Test server    checks that the server responds and finds its working folder
  Connect        closes DentalStation, patches two program files (originals kept),
                 saves the account, links the folders to the server, restarts DentalStation
  Back to local  restores the original files, removes the links and the saved account,
                 restarts DentalStation

WHAT IT CHANGES ON THE CLIENT
  - Login-*.js in C:\Up3D\DentalStation2025\resources\app\public\html\js:
    auto-login reads server and account from C:\ProgramData\DentalStationLAN\login.json
  - index-*.js in the same folder: removes the "not the local machine, cannot start
    nesting" block
  - Originals are kept next to them with the extension .orig-lan
  - Folder links:
      C:\Up3D\CAM2\Orders              -> \\<IP>\C\Up3D\CAM2\Orders
      C:\DentalStationPath\<server id> -> \\<IP>\C\DentalStationPath\<server id>
    An existing real folder is renamed to *.local-backup-lan and restored by "Back to local".

SERVER REQUIREMENTS
  - DentalStation running and logged in
  - Drive C shared on the network (as C or C$)
  - Fixed IP address

NOTES
  - A DentalStation update overwrites the patched files. After an update, press Connect again.
  - Do not open the same blank on two PCs at the same time.
  - The password is stored in plain text in login.json; only administrators can read that file.
  - Uninstalling this tool does not undo the connection. Press "Back to local" first.
