Skip to content

Self-Host ADAMANT IPFS Node with Localtonet

Build and verify ADAMANT IPFS Node from source, then publish its local REST API securely over HTTP with Localtonet.

Summary in your language
In this article 10 sections
Self-Hosting · ADAMANT IPFS Node · Localtonet · 2026

Build a version-pinned content-addressed storage node, verify it locally, and publish only the API you intend to make public

ADAMANT IPFS Node is a standalone Node.js and Helia service for application-owned file delivery across a controlled peer set. This guide pins the deployment to release v0.1.0, separates the REST listener from the libp2p peer port, covers source and Docker installation, and explains how to verify storage behavior before adding remote access. We then connect the local REST API to an HTTP tunnel with Localtonet. Upload and download are unauthenticated by design, so direct tunneling is limited here to deployments that intentionally provide a public API.

🔒 Version-pinned deployment and deliberate public exposure 🌐 REST API on port 4000, peer transport on port 4001 ⚡ Local verification before tunnel creation
ADAMANT IPFS Node running locally while Localtonet carries HTTP requests through a tunnel.
Localtonet routes public HTTP requests to the locally hosted ADAMANT REST API.

What ADAMANT IPFS Node is, and what it is not

ADAMANT IPFS Node is a self-hosted storage service for applications that upload files over HTTP and retrieve them by content identifier, or CID. Internally, it runs a Helia node and a libp2p host in the same Node.js process. Applications interact with an Express REST API instead of embedding an IPFS library or controlling a separate Kubo daemon.

A deployment consists of nodes whose operators explicitly configure one another by multiaddress. Those nodes exchange blocks, replicas, repair traffic, and health attestations within the known peer set. The documented peer transport uses TCP, Noise for encrypted libp2p connections, and Yamux for stream multiplexing. The general libp2p host registers identify and ping, while project-specific protocols handle replication and repair.

The name can otherwise create the wrong expectation. ADAMANT IPFS Node does not participate in the public IPFS distributed hash table, publish content through a public gateway, use a public bootstrap list, or provide IPNS. It has no mDNS discovery, circuit relay, or built-in NAT traversal. Uploading a file does not announce it to public IPFS, and a CID that exists only on the public network cannot automatically be retrieved through this service.

It is also not a Kubo wrapper and does not expose a Kubo-compatible API. Software written for Kubo cannot simply change its base URL and use ADAMANT IPFS Node. Integrations must follow this project's versioned REST contract.

📦 Content-addressed delivery Applications upload multipart files over HTTP and retrieve stored content by CID as a streamed attachment.
🧭 Deterministic placement Rendezvous hashing lets configured nodes derive the same holder set for a CID. Age-based tiers can request fewer copies as content gets older.
💾 Bounded storage lifecycle Disk reserve, aggregate request limits, temporary-upload TTL behavior, watermarks, and garbage collection help bound storage consumption.
🔧 Replication and repair Cross-node replication and a resumable repair cycle restore missing copies in bounded passes across the configured peer set.
❤️ Health checkpoints The health system reports a monotonic checkpoint height that advances only when required checks, including required peer attestations, pass.
🚦 Admission controls Address-based rate limits and concurrency controls cover uploads, downloads, and pin operations, but they are not user authentication or traffic accounting.

When it is a good fit

The node is appropriate when an application owns the file-delivery workflow and needs a REST interface, content-addressed retrieval, bounded local storage, explicit replication, repair, and an operational health signal. It is especially relevant to a small or fixed group of mutually trusted storage operators. Application media and messenger attachments are representative uses.

When to choose another architecture

Choose another solution if the goal is public IPFS participation, arbitrary retrieval from the public network, IPNS, a public gateway, or Kubo API compatibility. It is not a substitute for object storage when an application requires S3-compatible APIs, cloud IAM, built-in egress accounting, monthly quotas, or managed global delivery. Large, rapidly changing clusters and peer groups composed of mutually untrusted operators also fall outside its documented design center.

A controlled topology is not automatically a private network

Removing public discovery and public gateway routing reduces exposure of content-routing metadata. It does not make a deployment anonymous, trustless, censorship-proof, or automatically confidential. Availability and confidentiality still depend on the selected operators, host security, replication policy, network controls, and application design.

Prerequisites and deployment decisions

This tutorial uses release v0.1.0, whose signed release commit is 5f72ede. The repository's current default branch is dev, so cloning and immediately running the default checkout would not reproduce the release described here. Both installation paths explicitly check out v0.1.0 before dependencies or configuration are used.

The Docker route is the recommended first deployment because the release publishes a versioned image, a fixed configuration mount at /app/config.json5, a persistent home directory at /data, and documented port mappings. Use the source route when you need to inspect or modify the code or manage the Node.js process directly.

Requirement Source installation Docker installation
Git Required to clone and check out v0.1.0 Required when obtaining the matching example configuration from the repository
Node.js and npm Node.js 24 and its compatible npm installation are required Not required on the host for the published image
Docker Not required Required, with support for the image architecture
Release architectures Depends on host and native dependency availability linux/amd64 and linux/arm64 for v0.1.0
Configuration location Use the configuration behavior shipped with the checked-out release and start from its config.default.json5 Mount a reviewed JSON5 file read-only at /app/config.json5
Persistent data Stored under $HOME/<storeFolder> Persist /data, which is the container's home directory
Localtonet client Install it on the same host or on another device that can reach the selected REST listener

Install supported host tools

Install Git through your operating system's supported package mechanism or the official Git distribution. Install Node.js 24 using a version manager such as NVM for the source path. The repository includes an .nvmrc, allowing nvm use to select the expected runtime after checkout. Install Docker using Docker's supported installation path for your operating system if you choose the container route.

Install and run the Localtonet client on the device that will originate the tunnel. The client device must be able to reach the REST target itself. A service available at the Docker host's loopback address is not automatically reachable from another container, virtual machine, or physical device.

Verify every tool relevant to your selected path before continuing:

git --version
node --version
npm --version
docker --version

For a source installation, node --version must report a Node.js 24 release. For Docker, confirm that the daemon is running as well as checking the client version:

docker info
docker run --rm hello-world

Confirm the Localtonet client is installed, authenticated with its device-specific token, and shown as connected in the dashboard. Client version display and installation details can vary by operating system and application release, so use the version information presented by the installed client rather than copying a platform-specific command that does not apply to your host.

Plan permissions, storage, and networking

The account running a source deployment must be able to read the configuration, write beneath the chosen home directory, bind the configured REST and peer ports, and execute the compiled application. A Docker deployment needs permission to communicate with the Docker daemon, read the mounted configuration, create or use the named data volume, and bind host ports 4000 and 4001.

The project provides controls for disk reserve, upload size, temporary-upload lifetime, and high and low garbage-collection watermarks. The supplied evidence does not establish one universal minimum disk size. Size the volume from your expected retained content, replica policy, temporary-upload peak, repair overhead, and required free-space reserve. Do not treat the garbage collector as a substitute for capacity planning.

Decide whether this is a standalone evaluation or a multi-node deployment. The release's Docker example joins no network and is appropriate for an initial local test. In a production peer mesh, each node must be configured with the other intended nodes. Peer membership is static, and changing it resets the health checkpoint membership epoch.

Time-sensitive release facts must be checked before publication or upgrade

The commands below deliberately pin v0.1.0. At publication or upgrade time, recheck the latest release, supported image architectures, container metadata, CORS behavior, configuration validation, and API contract. Do not silently substitute a newer tag while continuing to use examples reviewed for v0.1.0.

Prepare and review the version-matched JSON5 configuration

Configuration is part of the deployed release contract. For Docker, copy docker/config.example.json5 from the checked-out v0.1.0 tree and mount that reviewed copy at /app/config.json5. For a source build, begin with the release's config.default.json5 and preserve the startup behavior defined by that release.

git clone https://github.com/Adamant-im/ipfs-node.git
cd ipfs-node
git checkout --detach v0.1.0
git rev-parse --short HEAD
git status --short

cp docker/config.example.json5 config.json5
chmod 600 config.json5

The abbreviated revision should begin with 5f72ede, and git status --short should be empty before the local configuration copy is created. Keep config.json5 out of source control because it will contain the administrative credential and deployment-specific topology.

Administrative credential

The service has one administrative key for protected operator routes. Upload and download do not use that key. Set the administrative-key property already present in the matching release configuration to a unique, high-entropy secret. Do not invent a new property, rename the shipped property, or copy a sample value into production.

The evidence supplied for this revision establishes that the key exists, but it does not expose the literal JSON5 property name or its validation rule. Reproducing a guessed key name would create a configuration that may fail validation or, worse, start without the expected protection. Therefore, edit the administrative-key entry already present in the checked-out v0.1.0 example and retain its exact spelling and structure.

A local secret can be generated without printing it into this article:

umask 077
openssl rand -hex 32 > admin-key.txt

Transfer that value into the existing administrative-key setting using an editor that does not upload file contents to a remote service. Then securely remove admin-key.txt if your secret manager has taken custody of it. Avoid passing the key as a command-line argument, because command arguments can appear in shell history and process listings.

Review the complete configuration by function

A minimal deployment is not simply the example file with one secret changed. Review these groups in the checked-out file before startup:

  • REST binding: confirm the API listener and port. This tutorial expects the Docker container to listen on port 4000 and maps that port to host loopback.
  • Data location: confirm storeFolder. Data remains under $HOME/<storeFolder>. In the release container, HOME is /data.
  • Peer transport: confirm the TCP listener associated with port 4001 and the configured peer multiaddresses.
  • Peer membership: use an empty peer set only for a deliberate standalone evaluation. Every node in a real deployment must have a consistent view of the intended peer set.
  • Replication: review holder counts and age-based tiers against the number of available peers.
  • Storage lifecycle: review temporary-upload TTL, aggregate request limits, disk reserve, and high and low watermarks.
  • Admission controls: review upload, download, and pin rate limits plus concurrency limits.
  • Health behavior: review required attestations and any repair-backlog grace setting used by monitoring.
  • CORS: permit only browser origins required by the application. CORS does not authenticate non-browser clients.
Why this guide does not publish a reconstructed JSON5 object

The supplied primary evidence describes the configuration categories, defaults file, example file, data layout, and administrative key, but it does not include the complete literal v0.1.0 schema. A hand-reconstructed object would not be evidence-backed. The checked-out release file is the authoritative, version-matched template and prevents property-name drift.

Build and start release v0.1.0 from source

Five-stage flow from version-pinned ADAMANT source code to a running local REST API.
The source workflow checks out a release before installing dependencies, compiling the service, and starting its local API.

Use this route when source inspection or development is required. Native dependencies may need host build tools and access to release assets. The project includes an npm 12 allowScripts entry because Helia's WebRTC dependency includes node-datachannel, whose installation downloads a prebuilt binary. Do not use npm ci --ignore-scripts.

1

Clone and pin the source

Clone the official repository, check out v0.1.0 in detached mode, and confirm that the revision begins with the signed release commit 5f72ede.

2

Select Node.js 24

Run nvm use so the repository's .nvmrc selects the expected runtime. Confirm the active versions before package installation.

3

Install the locked dependencies

Run npm ci without suppressing install scripts. Stop if a native binary cannot be installed rather than continuing with an incomplete dependency tree.

4

Build the release

Run the documented build script to create the compiled application under dist.

5

Start with the reviewed release configuration

Keep the version-matched configuration where the release startup expects it, then launch the compiled entry point. Confirm the active bind addresses and data location from configuration and startup output.

git clone https://github.com/Adamant-im/ipfs-node.git
cd ipfs-node
git checkout --detach v0.1.0
git rev-parse --short HEAD

nvm use
node --version
npm --version

npm ci
npm run build
node dist/index.js

Keep the process in the foreground for initial testing. Resolve configuration validation, native-module, file-permission, data-directory, or bind errors before adding a process manager.

The project documents PM2 as an optional process manager, but the supplied evidence does not establish a release-specific PM2 command or application file. Do not copy an invented service definition. Whatever supervisor you select must use the correct working directory, expose the reviewed configuration to the process, preserve the intended home directory, and allow graceful shutdown.

Run the pinned v0.1.0 container

The published image is ghcr.io/adamant-im/ipfs-node:0.1.0. Release evidence identifies builds for linux/amd64 and linux/arm64, an unprivileged runtime user, an attached software bill of materials, and provenance attestation. Recheck those facts before using another image tag.

1

Prepare the matching configuration

Check out v0.1.0, copy docker/config.example.json5, set the administrative key, and review REST, data, peer, lifecycle, health, and admission settings.

2

Create persistent storage

Create the named ipfs-node-data volume. Mounted at /data, it holds blocks, datastore state, peer identity, pins, lifecycle state, repair cursor, and health checkpoint.

3

Start the pinned image

Mount the configuration read-only, mount the persistent volume at /data, bind the REST API only to host loopback, and publish the separate peer port only when the controlled mesh requires it.

docker volume create ipfs-node-data

docker run -d \
  --name ipfs-node \
  --restart unless-stopped \
  --stop-timeout 20 \
  -v ipfs-node-data:/data \
  -v "$PWD/config.json5:/app/config.json5:ro" \
  -p 127.0.0.1:4000:4000 \
  -p 4001:4001 \
  ghcr.io/adamant-im/ipfs-node:0.1.0

The mapping 127.0.0.1:4000:4000 keeps the REST listener off the host's external interfaces while making it available to software on the Docker host. A Localtonet client on that host can target 127.0.0.1:4000.

If the Localtonet client runs in another container, virtual machine, or device, 127.0.0.1 refers to that environment, not to the Docker host. Build a deliberate private route to the protected listener and test it from the Localtonet client environment before configuring the tunnel.

Port 4001 carries the controlled libp2p peer mesh. It is not an HTTP endpoint and must not be used as the target of an HTTP tunnel. Limit its firewall exposure to intended peers.

Publishing port 4001 globally is not required for a standalone test

The release command publishes the peer port for a deployment that needs peer connectivity. If the node is a standalone evaluation, review whether that host mapping is needed. In a real mesh, apply network policy so only intended peer addresses can reach it.

Verify the service locally before creating a tunnel

A local HTTP client receives a response from the ADAMANT REST API on loopback.
Process, health, upload, and download checks should pass locally before the API is exposed remotely.

Verification has four layers: process state, network reachability, application health, and file round-trip behavior. A listening socket or response from the root path does not prove that the versioned API, storage lifecycle, replication, or health checkpoint is working.

Inspect the process and logs

docker ps --filter name=ipfs-node
docker logs --tail 100 ipfs-node

For a source deployment, inspect the foreground output from node dist/index.js or the logs collected by your process manager. Resolve configuration, native dependency, storage, permission, and bind failures before continuing.

Use the exact API contract shipped for the deployed release

Release v0.1.0 publishes an OpenAPI contract at https://ipfs-node.docs.adamant.im/openapi.yaml. That contract is the authority for versioned route paths, multipart field names, response bodies, authentication headers, and status codes.

The evidence supplied for this revision describes the endpoint classes and behavior but does not include the literal OpenAPI path objects. It would be unsafe to fabricate route names or multipart fields. Download and retain the contract alongside the deployment so tests and application code can be reviewed against the same API description:

curl --fail --silent --show-error \
  https://ipfs-node.docs.adamant.im/openapi.yaml \
  --output openapi-v0.1.0.yaml

grep -E '^  /' openapi-v0.1.0.yaml

Before treating that download as permanently version-matched, archive it with the deployment and review its version metadata. The documentation URL is not itself a tag-specific immutable URL in the supplied evidence. If its declared version no longer matches v0.1.0, obtain the contract from the checked-out release or deploy the release that matches the current contract.

Do not substitute a root-path request for health verification

A request to http://127.0.0.1:4000/ can prove only that an HTTP server answered. A 404 may be normal for an undocumented root path. Health verification must call the health operation listed in the matching OpenAPI contract and interpret its documented status and response body.

Run a disposable upload and download test

Create a small, non-sensitive payload and record its checksum. In the following contract-driven template, replace HEALTH_PATH, UPLOAD_PATH, MULTIPART_FIELD, CID_JSON_FIELD, and DOWNLOAD_PATH_WITH_CID with the exact values shown by the matching OpenAPI file. They are explicit placeholders, not claimed endpoint names.

BASE_URL="http://127.0.0.1:4000"

printf 'ADAMANT Localtonet verification\n' > adamant-test.txt
sha256sum adamant-test.txt

curl --fail-with-body --silent --show-error \
  "$BASE_URL/HEALTH_PATH"

curl --fail-with-body --silent --show-error \
  -F "MULTIPART_FIELD=@adamant-test.txt;type=text/plain" \
  "$BASE_URL/UPLOAD_PATH" \
  --output upload-response.json

cat upload-response.json

CID="$(node -e '
const fs = require("fs");
const body = JSON.parse(fs.readFileSync("upload-response.json", "utf8"));
const cid = body["CID_JSON_FIELD"];
if (typeof cid !== "string" || cid.length === 0) process.exit(1);
process.stdout.write(cid);
')"

test -n "$CID"
printf 'Uploaded CID: %s\n' "$CID"

curl --fail-with-body --silent --show-error \
  "$BASE_URL/DOWNLOAD_PATH_WITH_CID" \
  --output adamant-test.downloaded

sha256sum adamant-test.downloaded
cmp --silent adamant-test.txt adamant-test.downloaded
printf 'Downloaded bytes match the uploaded file.\n'

Replace the CID placeholder in the download path with the captured $CID according to the path syntax in the contract. The initial file and downloaded file must produce the same SHA-256 digest, and cmp must exit successfully.

Also compare the observed HTTP status codes with the OpenAPI responses. A successful health response, upload response, and streamed download should use the documented success statuses. Rate-limit, admission, validation, missing-content, and storage-pressure failures should remain machine-readable errors rather than being mistaken for transport failures.

Upload and download are unauthenticated by design. The administrative key is not required for this public file round trip and must not be added to requests unless the contract marks the selected operation as administrative.

Understand test cleanup and retention

The release identifies uploader-signed deletion as open work. Do not assume that an unauthenticated uploader can immediately delete the uploaded CID. A disposable upload may remain until the configured temporary-upload TTL and storage lifecycle make it eligible for collection, or until an authorized administrative operation documented by the deployed API handles it.

Use a tiny test file with no confidential data. Record the CID and test time so operators can observe lifecycle behavior. Do not repeatedly upload large files simply to test availability.

Publish the REST API with a Localtonet HTTP tunnel

HTTP traffic travels from a public endpoint through Localtonet to the ADAMANT REST API on localhost.
The Localtonet client forwards public HTTP traffic to the verified local API target.

Once the complete local test succeeds, an HTTP tunnel can provide a public HTTPS address without inbound router port forwarding, firewall changes, VPN setup, or a public IP address. Our client establishes an outbound connection to a Localtonet relay server. The endpoint is available only while the selected client is connected and the tunnel is running.

This direct-tunnel workflow is only for an intentionally public API

ADAMANT IPFS Node uploads and downloads are unauthenticated by design. Pointing a public tunnel directly at port 4000 can make those routes available to anyone who obtains or discovers the URL. Continue only if that is the intended application architecture and the configured storage, admission, rate, and lifecycle controls are appropriate for public traffic. If callers must be authenticated, do not target port 4000 directly. First deploy and verify an authentication-aware gateway, then target that protected listener.

Follow the current Localtonet HTTP tunnel documentation if the dashboard changes. The documented field sequence is preserved below.

1

Install and run the Localtonet client

Run our client on the Docker host or another device that can reach the selected REST listener. Confirm the device is connected before configuring the tunnel.

2

Open the HTTP tunnel workflow and choose Process Type

Select the HTTP tunnel type, then choose Random Sub Domain, Custom Sub Domain, or Custom Domain. These Process Type options publish the same local content at a public HTTPS address. Check current DNS instructions before selecting Custom Domain.

3

Select the AuthToken

Choose the device-specific AuthToken belonging to the client that can reach the node. Treat the token as a secret and keep it out of screenshots, command output, source control, and support posts.

4

Select an available server

Choose a relay server or region offered in the current dashboard. Do not copy a hardcoded server code from another deployment because available values can vary.

5

Enter the local target

When the client runs on the Docker host used in this guide, set the local IP address to 127.0.0.1 and the local port to 4000. If the client runs elsewhere, use the private address reachable from that client device after testing it there.

6

Create and start the tunnel

Creating the configuration does not make it active. Use the Start button, wait for the active state, and copy the assigned public HTTPS URL.

7

Repeat the functional test publicly

Change only the base URL in the verified health, upload, CID capture, download, and byte-comparison procedure. The same versioned routes and request bodies should work through the public URL.

8

Stop or delete the tunnel when it is no longer required

Use Stop to remove public availability while retaining the configuration. Delete the tunnel when the endpoint should not be reused.

For public verification, set the assigned URL as the base and repeat the exact contract-driven test:

PUBLIC_BASE_URL="https://your-assigned-public-host"

curl --fail-with-body --silent --show-error \
  "$PUBLIC_BASE_URL/HEALTH_PATH"

curl --fail-with-body --silent --show-error \
  -F "MULTIPART_FIELD=@adamant-test.txt;type=text/plain" \
  "$PUBLIC_BASE_URL/UPLOAD_PATH" \
  --output public-upload-response.json

Capture the returned CID, download it through the public base URL, and compare the result with the original. A response from the public root alone is not sufficient. Verify the actual versioned API operation, response status, response body, streaming download, and file bytes.

Local target reachability is evaluated from the client device

A browser on another computer being able to reach the Docker host does not prove that the Localtonet client can reach 127.0.0.1:4000. Run the local health and file round-trip checks from the same host and network namespace as the client.

Set a deliberate public-access boundary

Access controls filter public requests before they can reach the tunneled ADAMANT REST API.
Private deployments need a tested authentication layer before the Localtonet tunnel target.

This tutorial does not provide a generic reverse-proxy recipe because a secure configuration depends on the chosen proxy's primary documentation and on the literal routes and streaming requirements in the matching ADAMANT OpenAPI contract. An incomplete snippet can break multipart uploads, buffer large streamed downloads, leak credentials, or accidentally expose administrative routes.

The direct port 4000 workflow is therefore intentionally scoped to a public API. If the deployment is private, stop before creating the tunnel and implement a protected listener that has all of the following properties:

  • Authentication of every permitted caller using a mechanism suitable for the application.
  • Authorization that exposes only the required health, upload, or download operations.
  • Explicit denial of administrative routes at the public listener.
  • Request-body limits compatible with the intended upload policy.
  • Streaming behavior verified for large downloads rather than unbounded proxy buffering.
  • Timeouts long enough for valid transfers but bounded against stalled requests.
  • Logging rules that omit administrative credentials and sensitive request content.
  • An end-to-end upload, CID capture, download, checksum, rejection, and authentication test.

Point Localtonet at that protected listener, not directly at 127.0.0.1:4000. Keep the raw node listener on loopback or another restricted interface so callers cannot bypass the gateway.

Control What it addresses What it does not replace
Localtonet HTTP tunnel Provides public HTTPS connectivity to a configured local HTTP target through an outbound client connection Application authentication and authorization
Protected gateway Authenticates callers and restricts routes before traffic reaches the node Node storage controls, replication policy, and backups
Administrative key Protects operator endpoints marked as administrative by the API contract End-user identity for public upload and download routes
Rate and concurrency limits Bound request rates and simultaneous transfers Per-user authorization, byte accounting, and monthly quotas
Loopback binding Prevents direct REST listening on every host interface Protection from processes already running on the host
Peer firewall rules Restrict port 4001 to intended storage peers REST API policy on port 4000

Protect the administrative credential

Never put the administrative key in a URL, browser bundle, mobile application, tunnel definition, screenshot, or shared command history. Browser-delivered code cannot keep a shared administrative secret. Administrative operations should originate from a trusted backend or operator environment.

Review CORS separately

Release v0.1.0 includes CORS work for desktop application origins, Tor onion origins, and opaque null origins. CORS controls which browser origins may read responses and perform certain cross-origin requests. It is not authentication and does not prevent direct requests from non-browser clients.

Plan for public resource use

An unauthenticated public upload service can consume bandwidth, temporary storage, processing capacity, and retained storage according to policy. Configure disk reserve, aggregate request limits, temporary-upload TTL, high and low watermarks, endpoint rate limits, and concurrent request limits for the actual host. Monitor rejection behavior and free space during controlled load testing.

The HTTP tunnel and peer mesh solve different problems

The HTTP tunnel provides remote access to the REST endpoint. Port 4001 carries node-to-node libp2p traffic for configured peers. Localtonet does not turn the peer mesh into public IPFS, provide peer discovery, or merge the two ports into one service.

Routine operations, backups, monitoring, and troubleshooting

Control the Docker deployment

docker stop ipfs-node
docker start ipfs-node
docker restart ipfs-node
docker logs --tail 100 ipfs-node

The container uses unless-stopped, so Docker can restart it after daemon or host restarts unless an operator explicitly stopped it. Stopping the node interrupts REST requests, replication, repair, and health progress. The Localtonet tunnel may remain configured, but its requests cannot succeed while the target is unavailable.

Conversely, stopping the tunnel or Localtonet client removes public access while the node continues running locally. This separation is useful during maintenance. Stop the tunnel first if a configuration change should not be exposed while it is being tested.

Update deliberately

Do not replace the pinned image with a moving tag. Read release notes, compare configuration validation, inspect the new OpenAPI contract, back up configuration and persistent data, and test the new version with disposable content. Retain a rollback plan, but do not assume that state written by a newer release is backward-compatible.

For source deployments, check out the reviewed release or commit, run npm ci, rebuild, and restart only after examining changes. Do not use npm update as a substitute for the release's locked dependency installation.

Back up configuration and persistent state

Treat configuration and data as separate backup subjects. The JSON5 file contains topology and security-sensitive values. The data directory includes blocks, databases, libp2p peer identity, pins, lifecycle metadata, repair progress, and health checkpoint state.

Protect backup copies with suitable access controls and encryption. A backup is not complete until restoration has been tested on an isolated host. Confirm that the restored node uses the intended identity, configuration, peer membership, and listener addresses before reconnecting it to a production mesh.

Diagnose common failures

Symptom Likely area Safe next action
Source installation succeeds but startup fails Node.js version, suppressed scripts, native binary download, configuration, or permissions Confirm Node.js 24, reinstall with npm ci, inspect logs, and validate the release configuration
Container exits immediately Missing, unreadable, or invalid /app/config.json5 Inspect logs and confirm the mounted file came from the same release
Port 4000 does not answer Container state, port collision, API binding, or startup failure Inspect docker ps, logs, configuration, and host port use before changing bindings
Root path returns 404 An undocumented path was tested Call the health operation from the matching OpenAPI contract
Local API works but the public route fails Client state, tunnel state, selected AuthToken, or unreachable target Test from the Localtonet client environment and confirm the tunnel was started
REST request was sent to port 4001 REST and peer ports were confused Use port 4000 for the Docker REST mapping and reserve 4001 for peer transport
Peers do not form the expected mesh Static peer lists, multiaddresses, firewall policy, or inconsistent membership Confirm every intended peer is configured consistently and that port 4001 is reachable only where required
Health checkpoint stops advancing Peer attestations, repair backlog, storage conditions, or another checkpoint prerequisite Inspect health details, peer liveness, repair state, reserve, and configured grace behavior
Uploads are rejected Rate limits, concurrency admission, request limits, reserve, or storage pressure Read the machine-readable error response and review capacity before increasing limits
Downloaded checksum differs Wrong CID, incorrect API path substitution, proxy transformation, or incomplete transfer Repeat locally, inspect status and headers, then compare the same CID through each network layer

Monitor what proves useful operation

Monitor the process, versioned health operation, disk capacity, configured reserve, garbage-collection activity, upload and download rejection rates, replication failures, repair progress, peer liveness, and checkpoint height. A checkpoint that continues to advance is stronger evidence than a process that merely remains alive because advancement depends on the configured prerequisites passing.

Monitor the public boundary separately. Unexpected upload volume, repeated authentication failures at a protected gateway, large request bodies, unusual origins, and sudden bandwidth growth can indicate misuse even while node health remains green.

Frequently asked questions

Is ADAMANT IPFS Node a replacement for Kubo?

No. It is a standalone Node.js and Helia service with its own REST API. It is not a Kubo wrapper, does not expose a Kubo-compatible API, and cannot control an existing Kubo fleet.

Does uploaded content become available on public IPFS?

No. The node has no public DHT, public gateway, public bootstrap list, or IPNS support. Content is not announced to public IPFS, and arbitrary public-network CIDs cannot be fetched unless the content exists within the configured deployment.

Why is the source checkout pinned to v0.1.0?

The repository's current default branch is dev. Pinning v0.1.0, whose release commit is 5f72ede, keeps the source, configuration example, documented behavior, and container image aligned.

Which port should the Localtonet HTTP tunnel target?

For the Docker deployment in this guide, target 127.0.0.1:4000 when the Localtonet client runs on the Docker host. Port 4001 is libp2p peer transport and is not an HTTP REST endpoint.

Does Localtonet add user authentication to the API?

No. Our HTTP tunnel provides remote connectivity and a public HTTPS address for the configured target. It does not create application users or authorization rules. Direct tunneling is appropriate only when the API is deliberately public. Otherwise, expose a separately verified protected listener.

Are uploads and downloads protected by the administrative key?

No. Upload and download are unauthenticated by design. The single administrative key protects operator endpoints identified by the API contract. Rate and admission controls limit resource use but do not authenticate users.

Can the Localtonet client run in another container?

Yes, if it has a deliberate network path to the target. However, 127.0.0.1 refers to the current container's network namespace. A separate container cannot automatically reach a service bound to the Docker host's loopback interface.

Can an uploaded verification file be deleted immediately?

Do not assume so. The v0.1.0 release identifies uploader-signed deletion as open work. A disposable upload may remain until lifecycle policy makes it eligible for collection or an authorized administrative operation handles it. Use only tiny, non-sensitive test files.

Can I configure an absolute data-directory path?

The documented limitation for this release is that storage remains under $HOME/<storeFolder>. In the published container, HOME is /data, which is why the deployment mounts one persistent volume there.

Connect your verified public API with Localtonet

After the pinned node passes local health and file round-trip tests, and after you have deliberately decided whether its unauthenticated routes should be public, create an HTTP tunnel to the verified listener without opening an inbound router port.

Get Started Free →

Corrections & updates

Substantive changes approved by the Localtonet editorial team are listed transparently below.

Reviewed and updated for accuracy and completeness.

Localtonet is a secure multi-protocol tunneling and proxy platform designed to expose localhost, devices, private services, and AI agents to the public internet supporting HTTP/HTTPS tunnels, TCP/UDP forwarding, mobile proxy infrastructure, file server publishing, latency-optimized game connectivity, and developer-ready AI agent endpoint exposure from a single unified control plane.

Support