Custom host (a server you run yourself)
Besides using an office iPad, Mac, or Android tablet as a local-network host, FleetDispatch can connect to a FleetDispatch Server that you run yourself (a “custom host”). Drivers can sync even when they aren’t on the same Wi‑Fi, and your data is kept on a host that you choose and manage.
Custom Host is available starting with 8.0: you can use it on iPhone, iPad, and Mac with the App Store version. The Android version doesn’t include this feature yet; it will be added in a later version. See Release notes for the latest status.
When to use it
- Your drivers are usually out on the road, not on the office network, and need to sync at any time.
- You want fleet data kept somewhere your organization controls (a cloud account, web hosting, a NAS, or a company server).
- You don’t want to keep an iPad, Mac, or Android tablet running as the host all the time.
The local-network host is still available. A device connects to only one host at a time (a local-network host or a custom host).
Set up the host
FleetDispatch Server is open source (AGPL-3.0). The code and detailed steps for each deployment option are on GitHub at PomeloSky/FleetDispatch-Server. All three options have the same features, so choose one:
| Deployment | Good for |
|---|---|
| Cloudflare Workers + D1 | You don’t want to manage a server, and your fleet is small to medium (the free plan is usually enough) |
| PHP + MySQL (or SQLite) | You already have web hosting (cPanel, DirectAdmin, Plesk, and so on); a web-based installer means you don’t need SSH |
| Docker | A NAS (Synology, QNAP), a VPS, a company server, or a Raspberry Pi |
During deployment you set a setup code, which the first admin uses to connect. The host always uses HTTPS. Only a host on a private network (such as a company intranet) or on the same computer can use http, and the app asks you to confirm first.
Connect from the app
- Go to Settings › Usage Mode and choose Connect to Custom Host. If the device is already a local-network client, you can also tap Switch to Custom Host on the pairing page.
- Enter the host URL and verify it.
- First connection: enter the setup code you set when deploying the host. This device becomes an admin.
- Other devices: ask an admin to create a pairing code in Manage Host in the app, then enter it on the device. The pairing code determines the role (admin, driver, or viewer) and the linked driver, and each code can be used only once.
In Manage Host, an admin can rename the host, create or delete pairing codes, change a device’s role and linked driver, and unpair devices. If you already have data, an admin can use Upload local data to host to send it (for the same record, the more recently modified version wins).
Web admin
The host also offers an admin page for web browsers (by default, the host URL followed by /admin; you can change it to a hard-to-guess path or turn it off when deploying). It covers devices and roles, pairing codes, live locations of vehicles out on trips, the audit log, and a data view. You sign in the same way as in the app (with the setup code or a pairing code). The home page at the host URL shows only an introduction to FleetDispatch and download links; it never shows the admin page.
Permissions
The rules are the same as with a local-network host, and the host checks every change against the device’s role:
| Role | What it can do |
|---|---|
| Admin | Read and change all data, and manage devices and pairing codes |
| Driver | Receives only their own trips, inspections, and trip requests; other drivers’ phone and license numbers are hidden; can change only their own trips and inspections and can’t re-create deleted records |
| Viewer | View only; drivers’ personal details are hidden |
Where your data is stored
- With a custom host, fleet data (vehicles, drivers, trips, maintenance, work orders, inspections, parts, trip requests, and so on) and the live location of vehicles out on trips are sent over HTTPS to the host you set up and stored there.
- You or your organization set up and manage this host. INSTW (the developer of FleetDispatch) doesn’t operate or host these servers and can’t access the data on them. The host’s administrator is responsible for its backups, access permissions, and data deletion.
- The host stores only hashes of access tokens and pairing codes, and it temporarily blocks a network address after too many failed pairing attempts.
- After you switch to a custom host, you can go to Settings › Cloud Backup & Sync to turn off iCloud Sync and Auto Backup (on Android, the system backup is also uploaded to Google Drive) and delete files that were already backed up, so your data stays only on your devices and your host.
Offline use and troubleshooting
- While a device is offline, changes are saved on the device and sent automatically once it reconnects.
- “The pairing code or setup code is incorrect, already used, or expired”: ask an admin to create a new pairing code. The setup code works only while the host has no admin.
- After too many failed pairing attempts, the host blocks that network address for about 15 minutes. Please wait and try again.
- If a device is unpaired or its token stops working, the app stops syncing and switches to viewer; it needs a new pairing code to connect again.
- Can’t reach the host: check the URL (including
https://), make sure the host is running, and check that your company network doesn’t block the address.
Published on