Install Localtonet as an operating system service so the client starts after reboot and continues running after logout.
Prerequisites
- Localtonet is installed, and its executable is available at the installation path.
- You have the device-specific Localtonet AuthToken.
- You have Administrator privileges on Windows or sudo/root privileges on Linux and macOS.
- Linux must use systemd. Termux is not supported.
Protect your AuthToken: Replace
<YOUR_TOKEN>locally. Do not expose the resulting command in screenshots, repositories, support posts, documentation, or shared shell transcripts.
Install and start the service
- Windows: Open Command Prompt or PowerShell with Run as administrator, change to the directory containing Localtonet if necessary, and run:
localtonet --install-service --authtoken <YOUR_TOKEN> localtonet --start-service --authtoken <YOUR_TOKEN> - Linux with systemd: Open a terminal and run:
sudo localtonet --install-service --authtoken <YOUR_TOKEN> sudo localtonet --start-service --authtoken <YOUR_TOKEN> - macOS: Open Terminal and run:
sudo localtonet --install-service --authtoken <YOUR_TOKEN> sudo localtonet --start-service --authtoken <YOUR_TOKEN>
Service mode starts only the Localtonet client. Configure and start the required tunnel separately, with the correct device and relay option selected.
Verify automatic startup
- Windows: Open
services.mscor runlocaltonet --status-service --authtoken <YOUR_TOKEN>from an elevated shell. - Linux: Run
systemctl status localtonet. For live journal output, runjournalctl -u localtonet -f. - macOS: Run
sudo localtonet --status-service --authtoken <YOUR_TOKEN>and confirm the launchd job exists under~/Library/LaunchAgents/. - Reboot, wait for networking, and confirm in the Localtonet dashboard that the device reconnects and the required tunnel is running. Test the intended public endpoint.