Blogs

Hello, in this content we will explain how to start Localtonet automatically.

For Windows based system

To start localtonet automatically using NSSM (Non-Sucking Service Manager), follow these steps:

  1. Download and install NSSM from the official website (https://nssm.cc/download). Alternatively, you can download it from here.

  2. Open a command prompt and navigate to the directory where NSSM is installed.

  3. Run the following command to create a new service for localtonet:

nssm install localtonet
  1. In the "Application" tab, enter the path to the localtonet executable file in the "Path" field. For example:
C:\path\to\localtonet.exe
  1. In the "Arguments" field, enter the arguments you want to pass to localtonet. For example, to start localtonet with authtoken, you would enter:
authtoken YOURTOKENHERE
  1. Click the "Install Service" button to create the service.

  2. To start the localtonet service, open the Services manager (by typing "services.msc" in the Start menu search box), find the "localtonet" service, and click "Start".

Alternatively, you can start the service from the command prompt by running:

nssm start localtonet

That's it! localtonet should now be running as a service, and will start automatically when your system boots up.


For linux based system

Go this Github link

  • Step 1: Place localtonet in
    /opt/localtonet/
  • Step 2: Add
    localtonet.service
    to
    /lib/systemd/system/
  • Step 3: Go dashboard and get token edit localtonet.service file <token> paste here.
  • Step 4: Start localtonet service by typing:
systemctl enable localtonet.service
systemctl start localtonet.service

or just execute install.sh on Linux x64 platform.

curl -O https://raw.githubusercontent.com/localtonet/systemd-localtonet/master/install.sh
chmod +x install.sh
sudo ./install.sh
Localtonet secure introspectable tunnels to localhost web development and local gaming