Skip to main content

Client

Basic Usage

Start the Client

Run the following command to start NanoPing:

sudo np up

Access the Dashboard

Open your browser and go to:

http://localhost:8081

Serve Dashboard on Port 80

By default, the dashboard is served on port 8081. To serve it on port 80, use:

sudo np up --http 127.0.0.1:80

Stop the Client

To stop NanoPing, run:

sudo np down

Check Version

To check the installed version of NanoPing, run:

sudo np version

Start the gRPC API Server

To serve the gRPC API on a specific port (e.g., 10432), use:

sudo np up --grpc 127.0.0.1:10432

Connecting a Client to the Controller

Ensure both the controller and the client are running, then authenticate the client with:

sudo np authenticate-by-request http://localhost:8769

Replace http://localhost:8769 with the actual controller address.

To approve the authentication request, run:

sudo npctrl -c controller-config.example.yaml authentication-requests

A list of pending authentication requests will be displayed. Select the client and press ENTER to approve the request.