NETVARA KNOWLEDGE BASE
How to Limit Availability of Netvara Client to a Single Device
How to Limit Availability of Netvara Client to a Single Device
Overview
Use localhost-only binding and disable device sharing when models must remain available only to the host device. This configuration prevents network clients from reaching the local gateway and keeps the device out of team or collective sharing.
Prerequisites
- Netvara Client installed on the host device.
- Terminal access to the host.
- Access to the Netvara Console for checking device-sharing status.
- Permission to change the client configuration and local file permissions.
Step-by-Step Instructions
1. Bind the gateway to localhost only
Run the setup wizard:
python3 ~/.netvara-client/netvara_client.py setupSelect Localhost only (127.0.0.1), save the configuration, and restart the client:
python3 ~/.netvara-client/netvara_client.py restartThis makes the gateway available at http://127.0.0.1:8091/v1 on the host, but not through the host's LAN, Tailscale, or other network addresses.
2. Turn off device sharing
In the Netvara Console, open the host device's sharing or availability settings and confirm that sharing is OFF. The default is shared=false; verify that the device has not been shared with a team or collective.
3. Protect the local token
Restrict the local authentication token to the current user:
chmod 600 ~/.netvara-client/local_api_keyDo not place this token in source code, shared configuration, or applications running on other devices.
Verification
1. From the host, confirm that the local gateway responds at:
http://127.0.0.1:8091/v12. From another device on the same LAN or Tailscale network, try the host's network address. The connection should fail or be refused because the client is bound only to localhost.
3. Confirm the token permissions:
stat -f "%A %N" ~/.netvara-client/local_api_key 2>/dev/null || stat -c "%a %n" ~/.netvara-client/local_api_key The permissions should indicate owner-only read/write access, normally 600.
4. In the Netvara Console, verify that the device is not shared with a team or collective.
Troubleshooting & Common Questions
Another device can still connect. Rerun setup and confirm that the selected policy is Localhost only (127.0.0.1), then restart the client. Also check whether another service is listening on the host's network interfaces.
The local application cannot connect after changing the policy. Use http://127.0.0.1:8091/v1 and authenticate with the token stored at ~/.netvara-client/local_api_key.
The console still shows the device as shared. Open the device's sharing settings and turn sharing off. Allow a short time for the console to update, then refresh.
Does localhost-only binding disable the client? No. Applications running on the host can continue to use the local gateway; network devices cannot.
Should I use a User API key for local-only access? Local applications should use the local token. A User API key is intended for remote or network access.
