One Reverse Proxy or Multiple Tunnels?
Learn when to expose many local services through one reverse proxy or separate Localtonet HTTP, TCP, UDP, and combined tunnels.
In this article 10 sections
Choose the right public boundary for every local service
Publishing several applications from one device or LAN creates an architectural choice. Compatible web applications can share one local reverse proxy and one Localtonet HTTP tunnel, while services with different protocols, owners, audiences, or lifecycles may need separate tunnels. This guide helps you make that decision, prepare the Localtonet client, configure the appropriate tunnel targets, verify routing behavior, and operate the result safely. It is an architecture and deployment guide, not a universal reverse-proxy configuration tutorial, because proxy syntax and application trust settings must come from the selected proxy and framework documentation.
📋 What's in this guide
One reverse proxy or multiple tunnels?
The short answer is to use one local reverse proxy when several compatible HTTP applications share an appropriate trust boundary and benefit from centralized path routing. Use separate Localtonet tunnels when services require different protocols, independent access policies, distinct owners, separate maintenance windows, clearer fault boundaries, or direct forwarding to different local targets. Many deployments should use a hybrid design rather than forcing every service into one model.
A reverse proxy and a tunnel solve different parts of the connectivity problem. A local reverse proxy accepts HTTP requests and selects an upstream web application according to rules such as the URL path or requested hostname. A Localtonet tunnel publishes a service reachable by the connected client through a public URL or public host and port. The Localtonet client establishes an outbound connection to our relay, so the workflow does not require inbound router port forwarding, a public IP address, VPN setup, or inbound firewall changes.
In the consolidated pattern, a Localtonet HTTP tunnel points to the reverse proxy's local IP address and listening port. The reverse proxy dispatches each request to the appropriate local web application. In the separate pattern, each tunnel points directly to its service's IP address and port. TCP, UDP, and combined UDP/TCP tunnels preserve the appropriate port-oriented service model instead of trying to force non-HTTP traffic through HTTP routing.
The number of public tunnel configurations does not establish how connections are implemented inside our platform. This guide does not assume or claim that Localtonet uses QUIC, HTTP/3 Extended CONNECT, a particular stream-multiplexing protocol, or one transport connection per service. Base the decision on service behavior, security, routing, and operations rather than an unsupported assumption about internal transport.
Inventory every service before choosing a design
Start with an inventory rather than a tunnel count. For each service, record the protocol clients actually use, the local target, intended audience, authentication mechanism, data sensitivity, owner, and whether the service must remain independently available. This prevents a common mistake: grouping applications merely because they happen to run on the same computer.
Device location is not a security boundary. A public documentation site, internal monitoring dashboard, webhook receiver, and database may all run on one host while serving completely different audiences. Publishing all of them through one route because they share a machine can make authorization harder to understand and increase the impact of a routing mistake.
Identify the real application protocol
A browser interface or HTTP API is a candidate for an HTTP tunnel or a reverse proxy placed behind one. A protocol that uses a TCP port is not automatically an HTTP application. Database connections, custom binary protocols, game servers, and many remote administration protocols generally need raw port forwarding appropriate to their actual protocol. Datagram-oriented applications need UDP support. A service that genuinely requires both TCP and UDP on the same logical port can be evaluated for a combined UDP/TCP tunnel.
Do not infer the protocol from a port number alone. Confirm it from the service configuration and client documentation. Also determine whether the application uses additional ports, redirects clients to another hostname, opens WebSocket connections, or advertises an internal address in its responses.
Map reachability from the Localtonet client
The Localtonet client must run on a device that can reach every selected local target. A target may be on the same machine or another reachable device on the LAN. Before creating a tunnel, test the service from the client device itself. If the client cannot connect because of an incorrect bind address, host firewall, name-resolution problem, or network segmentation rule, creating a public tunnel will not repair that local path.
Classify audience and exposure
Record whether a service is intended for anonymous public use, authenticated customers, employees, automation, a specific partner, or temporary testing. Then identify the control that enforces that decision. Application authentication, explicit reverse-proxy policy, source restrictions where available, and narrowly scoped permissions are more meaningful than relying on an obscure URL or unexpected port.
| Inventory field | Question to answer | Why it affects the architecture |
|---|---|---|
| Protocol | Is the client speaking HTTP, TCP, UDP, or both TCP and UDP? | It determines which tunnel family can correctly carry the service. |
| Local target | Which IP address and port does the service use? | The Localtonet client or local reverse proxy must be able to reach that target. |
| Audience | Who should be able to connect? | Services for different audiences may need separate entry points and policies. |
| Authentication | Where are identity and authorization enforced? | A shared route must not accidentally weaken existing controls. |
| Owner | Who approves changes and responds to incidents? | Separate ownership often favors independent configurations and lifecycles. |
| Availability | Can the service be stopped independently? | A shared proxy can couple availability and maintenance. |
| Sensitivity | What data or administrative capability is exposed? | Higher-risk services benefit from stronger isolation and a smaller public surface. |
| Routing behavior | Does the application require a hostname, path prefix, redirect target, or public origin? | The proxy and application must agree on externally visible request details. |
Development servers, database consoles, router panels, monitoring dashboards, and reverse-proxy administration pages may be appropriate only on a trusted local network. Before exposing any target, confirm that public access is intentional, suitable authentication and authorization are active, and the software is configured according to its production guidance.
Prerequisites for either architecture
Complete these prerequisites before creating a public tunnel. The architecture decision depends on information from both the application layer and the Localtonet layer, so do not begin with a guessed port or a preferred tunnel count.
Supported Localtonet installation paths
The current Localtonet download and installation documentation provides clients for Windows on 64-bit, 32-bit, ARM, and ARM64 systems; Linux on 64-bit, ARM, ARM64, and MUSL variants; macOS on 64-bit and ARM64 systems; Docker; and Android. It also documents a Termux ARM64 package for Android and experimental x64 and ARM64 packages for supported OpenWrt releases. Select the package that matches the actual operating system and processor architecture rather than substituting a command intended for another platform.
The managed Linux package path is suitable for a continuously running tunnel host. Current DEB and RPM packages are available for x64 and ARM64 and require systemd 247 or newer and OpenSSL 3. Examples of compatible distributions listed in our documentation include Debian 12, Ubuntu 22.04 or newer, and RHEL 9.
Install the managed Linux package
Download the correct package from the Localtonet documentation first. Open a terminal in the directory containing the downloaded file. For Debian or Ubuntu x64, install the DEB package with:
sudo apt install ./localtonet-linux-x64.deb
For Debian or Ubuntu ARM64, use the matching package:
sudo apt install ./localtonet-linux-arm64.deb
For Fedora or RHEL x64, install the RPM package with:
sudo dnf install ./localtonet-linux-x64.rpm
For Fedora or RHEL ARM64, use:
sudo dnf install ./localtonet-linux-arm64.rpm
After installation, edit /etc/localtonet/auth-token as root. Replace the placeholder in that file with the device-specific Localtonet token on one line. Do not paste the real token into a shell history, article, ticket, screenshot, or source repository. Protect the file and validate the client configuration:
sudo chmod 600 /etc/localtonet/auth-token
sudo localtonet --headless --authtoken-file /etc/localtonet/auth-token --check-config
Start the standard tunneling service only after the configuration check succeeds:
sudo systemctl enable --now localtonet.service
sudo journalctl -u localtonet.service
The journal command displays service logs and is also useful after a restart or failed connection. This article covers standard HTTP, TCP, UDP, and combined UDP/TCP publishing, not VPN Manager, so use localtonet.service for this workflow.
The authentication token identifies the client device. Keep /etc/localtonet/auth-token restricted to the required account, preserve the documented 600 permissions, and never reuse an example token or expose the real value in logs and configuration samples.
Prepare the reverse proxy and applications
If you plan to consolidate HTTP services, install the chosen reverse proxy using its official platform-specific instructions. Configure it locally before involving Localtonet. At minimum, you need a proxy listener address and port, an explicit route for each application, reachable upstream addresses, and a safe response for unmatched requests.
This guide deliberately does not present interchangeable NGINX, Caddy, Apache, Traefik, or application-framework directives. Their syntax, defaults, header behavior, WebSocket handling, validation commands, service names, and reload procedures differ. Copying generic directives without identifying a proxy version and application framework can produce a configuration that appears to work while handling trust-sensitive request metadata incorrectly.
Before proceeding, confirm all of the following:
- Each backend starts through its documented startup method and responds when contacted directly.
- The reverse proxy starts successfully and passes its own supported configuration check.
- The Localtonet client device can reach the proxy listener.
- Every configured path or hostname reaches only its intended upstream.
- An unknown route receives a safe response instead of reaching a private default application.
- Operators know how to view proxy and application logs and how to restore the previous configuration.
Compare the three practical publishing patterns
Pattern 1: One HTTP tunnel to one local reverse proxy
Compatible HTTP applications remain on their local addresses and ports. A reverse proxy listens on one target address and routes incoming requests to those applications. One Localtonet HTTP tunnel points to that proxy. Public requests pass through the Localtonet tunnel, then the local reverse proxy, and finally the selected application.
This pattern is useful when web applications belong to the same operational environment and administrators want one place to manage request routing. For example, the root path might serve a user interface while /api/ reaches an API. One Localtonet public hostname is sufficient for this kind of path routing because the local proxy makes its decision from the URL path.
Host-based routing requires an additional qualification. A local proxy can distinguish requests by the Host value it receives, but publishing several external hostnames through one Localtonet tunnel depends on currently supported custom-domain and DNS behavior. Do not assume that several arbitrary public hostnames can point through one generated tunnel address. Verify custom-domain availability, process-type options, validation requirements, and exact DNS instructions in the current Localtonet product and documentation before designing a multi-host deployment.
Consolidation reduces the number of Localtonet tunnel configurations required for a compatible group. It can also provide a clear local ingress layer where routing policy is reviewed. However, the proxy becomes part of every request path. A broken configuration, unavailable proxy process, or overly broad route can affect multiple applications at once.
Path routing deserves particular care. Some applications assume they are hosted at / and generate absolute links, callback URLs, cookies, redirects, or static asset paths accordingly. Placing such an application under a prefix may produce a page that loads partially or redirects to the wrong location. Confirm that each application officially supports its configured base path.
Pattern 2: Separate tunnels for separate services
Each application receives a tunnel appropriate to its protocol. A web application gets an HTTP tunnel. A raw TCP service gets a TCP tunnel. A datagram service gets a UDP tunnel. A service that genuinely requires both can use a combined UDP/TCP tunnel where appropriate. Each tunnel points to the relevant local IP address and port reachable from the selected client.
Separate tunnels create explicit service boundaries. One tunnel can be stopped without intentionally stopping the others, and each public endpoint maps directly to a local target. This is valuable when services have different owners, maintenance schedules, incident procedures, or exposure periods. It also avoids inserting an HTTP reverse proxy in front of traffic that is not HTTP.
The tradeoff is a larger configuration inventory. Operators must document, review, start, stop, and monitor multiple tunnels. Public endpoints must be distributed to the correct users and clients. That overhead is worthwhile when it reflects genuine security or operational separation, but it can be unnecessary for a tightly integrated group of web applications managed as one unit.
Pattern 3: A hybrid architecture
A hybrid design is often the most accurate representation of a multi-service environment. Place a related group of public web applications behind one reverse proxy and expose it through an HTTP tunnel. Give an administration application its own HTTP tunnel so its lifecycle and controls remain separate. Publish a non-HTTP service through TCP or UDP according to its protocol. Leave services with no legitimate remote-access requirement unexposed.
Hybrid design avoids false uniformity. Sharing a server does not require sharing a public boundary, and central routing does not require creating one tunnel for every small HTTP component.
| Pattern | Best fit | Main advantage | Main caution |
|---|---|---|---|
| One reverse proxy and one HTTP tunnel | Related HTTP applications with shared ownership and policy | Centralized HTTP routing with fewer public tunnel configurations | The proxy is a shared dependency and mistakes can affect several applications |
| Separate protocol-appropriate tunnels | Different protocols, owners, audiences, or maintenance schedules | Clear targets, independent lifecycle control, and stronger separation | More endpoint and configuration inventory to operate |
| Hybrid publishing | Mixed environments containing related web apps and distinct services | Consolidation where useful and isolation where necessary | Requires a documented rule for assigning each service boundary |
A short decision checklist
Separate HTTP from non-HTTP services
Keep raw TCP and UDP protocols out of ordinary HTTP path-routing rules. Select a protocol-appropriate Localtonet tunnel for them.
Divide services by audience and trust
If applications serve different audiences or have substantially different sensitivity, prefer clear, independently reviewable boundaries.
Check path and hostname compatibility
Confirm base-path support, public-origin configuration, redirects, cookies, callbacks, and any custom-domain requirements before consolidating.
Compare ownership and maintenance windows
Services changed or stopped by different teams generally benefit from independent lifecycle control.
Choose consolidation only when it has a purpose
Use one proxy when shared routing improves the design, not merely to reduce the number of dashboard entries.
Design security boundaries before public exposure
A public route changes who can attempt to reach a service. It does not automatically make the application safe for untrusted clients. Treat tunneling as connectivity and retain authentication, authorization, input validation, rate controls, secure session handling, patching, and application-specific hardening.
Use least privilege at each layer
Expose only the listener needed for the workflow. Do not publish an entire host, broad administration interface, or unrelated set of routes when users need one service. If a reverse proxy fronts several applications, define explicit routes and a safe unmatched-request response instead of a broad fallback that can reach arbitrary upstreams.
Keep application authorization narrow. A tunnel endpoint should not turn a local service account into a general administrator. For automation, use credentials scoped to the required operation and rotate them according to the application's security model. Never place Localtonet device tokens, application secrets, API keys, or private endpoints in public configuration examples or screenshots.
Avoid confusing routing with authorization
Hostnames and paths tell a proxy where to send a request. They do not prove that the caller is permitted to use the destination. An administration path remains publicly reachable unless an authentication and authorization control protects it. A hard-to-guess address is not sufficient protection for a sensitive service.
Configure trusted-proxy behavior deliberately
A public client may see an HTTPS URL while the backend application receives a local request from an HTTP reverse proxy. Applications often use request metadata to construct redirects, secure cookies, callback URLs, absolute links, WebSocket URLs, and origin checks. Authentication systems such as OAuth, OpenID Connect, SAML, CSRF protection, and WebAuthn can also depend on the exact public scheme, hostname, port, or origin.
Follow the selected reverse proxy's documentation for preserving the original host and representing the external scheme. Follow the application framework's documentation for trusted proxies or forwarded headers. Trust forwarded metadata only from the known proxy path. Do not configure an application to accept arbitrary client-supplied Forwarded or X-Forwarded-* values, because those values can affect security-sensitive decisions.
Prefer an explicitly configured public URL or allowed-origin list when the application supports it. Then test through the exact public HTTPS address instead of assuming that a successful local request proves external-origin behavior.
Protect the reverse proxy itself
If you choose consolidation, the proxy configuration becomes security-sensitive infrastructure. Restrict who can modify it, review changes, keep the software updated, and avoid exposing its administration interface unless that access is intentional and strongly protected. Back up configuration using the proxy's supported workflow and test changes locally before applying them to the public route.
A catch-all hostname, incorrect path rule, permissive upstream pattern, trusted-header mistake, or exposed proxy dashboard can affect several applications simultaneously. Prefer explicit allowlisted routes, reject unmatched requests, and test both permitted and forbidden paths before sharing the public address.
Configure the selected architecture with Localtonet
Complete the local application and reverse-proxy checks before creating the tunnel. The Localtonet configuration should point to a target already known to work from the client device. If the target is one reverse proxy, create one HTTP tunnel to its listener. If services remain separate, create a protocol-appropriate tunnel for each local target.
Available server values, process options, and plan-dependent capabilities can change. Obtain current choices from the dashboard rather than copying a hardcoded server code. The same caution applies to custom-domain DNS instructions.
For the current HTTP workflow and interface details, use the Localtonet HTTP tunnel documentation. The broader Localtonet documentation lists the supported tunnel families and current client downloads.
Install and run the Localtonet client
Run the supported client on the device that can reach the reverse proxy or direct service target. On the managed Linux package path, confirm that localtonet.service is active and review its journal if startup fails.
Authenticate and select the client device
Use the device-specific token through the supported client workflow, then select that AuthToken or device when creating the tunnel. Keep the token secret and never place it in reverse-proxy configuration.
Select an available relay server or region
Choose from the values currently presented by the Localtonet product. Do not guess a server code or assume that every server or region is available with every subscription or deployment.
Create the protocol-appropriate tunnel
For a consolidated web design, create an HTTP tunnel and set its local IP address and port to the reverse proxy listener. For separate publishing, create an HTTP, TCP, UDP, or combined UDP/TCP tunnel for each service according to the inventory, using the local IP address and port reachable from the selected device.
Start the tunnel
Use the Start control after reviewing the target. Creating or saving a tunnel does not make it active. In a multiple-tunnel design, start only the services that should currently be reachable.
Use and later stop or delete the endpoint
Use the assigned public HTTPS URL for an HTTP tunnel or the assigned public host and port for a raw service. Stop temporary access when it is no longer needed, and delete configurations that should not be retained. The endpoint is available only while the selected client is connected and the tunnel is running.
HTTP process type and routing scope
HTTP tunnels support Random Sub Domain, Custom Sub Domain, and Custom Domain process types, with each serving the target at a public HTTPS address. Select only an option currently available to your account. If you need custom-domain behavior, verify the current DNS and validation workflow before making changes.
Path routing can operate beneath one Localtonet public hostname. For example, the local proxy may route / and /api/ to different upstreams while Localtonet targets only the proxy listener. Several external hostnames are a different design. They require verified custom-domain and DNS support, plus confirmation that the expected Host information reaches the local proxy. Do not treat those two routing models as interchangeable.
Restarting and upgrading a managed Linux client
Restart the Localtonet service after an operational change that requires a client restart:
sudo systemctl restart localtonet.service
Review recent service output with:
sudo journalctl -u localtonet.service
For a package upgrade, install the newly downloaded package using the appropriate apt or dnf command, then restart localtonet.service. The documented package workflow preserves the configuration. Always use the package matching the current system architecture.
A tunnel configuration must be started, and the selected Localtonet client must remain connected. When diagnosing an unavailable endpoint, check both conditions before changing application or proxy settings.
Verify routing, metadata, isolation, and failure behavior
Verification should prove more than that a home page opened once. Test locally first, then test from a network outside the target LAN so the request follows the intended public route. Exercise representative application behavior and inspect the logs available in your proxy, framework, and Localtonet client environment.
Local checks before public testing
From the Localtonet client device, request the exact reverse-proxy listener or direct target. For path routing, test every configured path. For host routing, use the proxy's documented local testing method so the expected host is supplied. Confirm that an unknown host or path is rejected or handled safely.
If the application is contacted directly, verify it with its real client protocol. A successful TCP socket connection is not a substitute for application authentication and message exchange. UDP services require an application-level request and expected response because they do not provide TCP-style connection confirmation.
Public HTTP behavior to verify
| Check | Expected behavior | Why it matters |
|---|---|---|
| Host | The proxy and application recognize the intended public hostname | Incorrect host handling can select the wrong route or produce invalid links. |
| Scheme | The application understands that the external URL is HTTPS | An incorrect scheme can break redirects, secure cookies, callbacks, and origin checks. |
| Forwarded metadata | Only trusted proxy-provided values affect the application | Blind trust can allow clients to spoof security-sensitive request information. |
| Redirects | Redirect locations use the correct public HTTPS URL and path | Internal hosts, ports, or schemes can leak or make flows unusable. |
| Cookies | Domain, path, Secure, and SameSite behavior match the public route | Incorrect cookie scope can break sessions or expose them more broadly than intended. |
| WebSockets | The connection upgrades and remains usable through the full public path | A normal page request does not prove upgrade support. |
| Development HMR | The browser connects to the intended public host and compatible WebSocket endpoint | Hot module replacement may generate a local or incorrect socket address. |
| Callback URLs | OAuth, webhook, and other callbacks use the registered public address | Providers frequently require an exact external URL. |
| Origin-sensitive features | The application validates the exact expected public origin | CSRF controls, CORS, WebAuthn, and browser security checks may depend on it. |
Not every application uses every behavior in the table. Test each item that applies to your stack. When a result is wrong, consult both the selected proxy documentation and the application framework documentation. The proxy determines what metadata is sent upstream, while the framework determines whether and from whom it trusts that metadata.
Negative and isolation tests
Request an unknown hostname, an unconfigured path, a similar misspelling, and any sensitive local-only route. The proxy should not fall through to an administration application or private default upstream. Verify that unauthenticated and unauthorized requests cannot retrieve protected content.
In a separate-tunnel design, stop one noncritical test tunnel and confirm that unrelated tunnels remain usable. Restart it through the documented workflow. In a reverse-proxy design, stop one backend and confirm that the proxy does not route users to another application. Then stop the proxy and confirm that all routes depending on it fail as expected.
Finally, stop the test tunnel and confirm that its public endpoint becomes unavailable. Restart it and repeat the representative application test. This verifies both the service path and the operator's understanding of the Localtonet lifecycle.
If redirects or authentication fail, configure the known proxy path according to the application framework's trusted-proxy guidance. Accepting forwarded scheme, host, or client-address values from arbitrary internet requests can create a security problem that is less visible than the original routing error.
Operate, restart, and roll back safely
Maintain an endpoint register
Keep a current record for every public entry point. Include the service name, purpose, owner, protocol, local target, Localtonet tunnel identity, public address, audience, authentication method, maintenance window, and retirement date if access is temporary. For a shared proxy, also record the route and upstream application.
Distinguish configurations that exist from tunnels that are running. Because creation does not start a tunnel, operators need both pieces of information. Remove obsolete entries rather than allowing abandoned public configurations to accumulate.
Define startup and restart order
For a shared-proxy design, start backend applications first, then the reverse proxy, then confirm local routing, then start the Localtonet tunnel. For separate tunnels, start and verify each local service before starting its tunnel. This order prevents a public route from being treated as healthy while its target is still unavailable.
After a host restart, verify the application services, proxy service, Localtonet client status, and tunnel state separately. Do not assume that one service manager setting controls every layer or that a saved tunnel is running.
Use logs from the correct layer
Application logs explain business behavior and authorization decisions. Reverse-proxy logs explain local routing when supported and enabled by the selected proxy. Local network tests establish whether the Localtonet client can reach the target. The Localtonet client journal on a managed Linux installation helps identify client startup and connection issues.
A public request can fail because the tunnel is stopped, the client is disconnected, the local route is blocked, the proxy selected no upstream, the backend is unavailable, or the application rejected the caller. Check these layers in order rather than changing several configurations at once.
Plan rollback before changing shared routing
Preserve the last known working reverse-proxy configuration using the proxy's supported backup method. Validate a proposed configuration with the proxy's own checking tool before reload or restart. If verification fails after a change, restore the previous configuration, restart or reload using the proxy's documented procedure, and confirm local routing before testing the public URL again.
If the Localtonet tunnel points to the wrong target, stop it before editing the configuration. Restore the previously documented local IP address, port, and tunnel type, then start and verify it again. If a new tunnel is unnecessary or was created for a failed migration, stop and delete it after confirming that the original route works.
Retire access deliberately
Temporary access should have a defined end. Stop the tunnel when the activity is complete and delete it when the configuration is no longer required. Remove obsolete reverse-proxy routes and separately revoke application credentials issued for the workflow. Stopping connectivity and revoking authorization solve different problems.
Troubleshoot multi-service publishing systematically
The public endpoint is unavailable
Confirm that the correct Localtonet client is connected and that the tunnel has been started. On a managed Linux installation, check:
sudo journalctl -u localtonet.service
Then test the local target from that same device. If it does not respond locally, inspect the application process, listening address, local port, host firewall, and LAN route before changing the tunnel.
One hostname or path reaches the wrong application
Review route specificity and ordering according to the reverse proxy's documentation. Check catch-all rules, overlapping path prefixes, wildcard hostnames, and unsafe default upstreams. Confirm that the request carries the hostname expected by the proxy. If several public hostnames are involved, also verify the current Localtonet custom-domain and DNS configuration rather than assuming host-based routing is already supported by the selected tunnel setup.
The page loads but assets or redirects are broken
This often indicates a mismatch between the application's expected public URL and its published route. An application mounted below a path prefix may still generate root-relative assets or redirects. Check whether it officially supports that base path. Verify the external hostname and HTTPS scheme seen by the application, along with its trusted-proxy configuration.
Login, callbacks, cookies, or WebAuthn fail
Compare the exact browser URL with the public URL configured in the application or identity provider. Check scheme, hostname, port, path, callback registration, allowed origin, cookie domain, cookie path, Secure behavior, and SameSite behavior where relevant. For WebAuthn, the browser origin and the server's expected origin must agree, while the relying-party identifier remains a separate setting.
Do not log credentials, authentication responses, challenges, session cookies, or device tokens while diagnosing the problem. Log normalized configuration choices and error names instead.
A WebSocket, streaming operation, or HMR connection fails
Confirm that the feature works through the local reverse proxy, not merely through direct access to the backend. Review the proxy's documented support for connection upgrades, streaming, and timeouts. Development HMR clients may need framework-specific public host or WebSocket settings. There is no safe universal directive that applies to every proxy and development server.
A TCP service accepts a connection but does not work
Test with the expected application client and inspect service-side logs. A successful socket connection does not prove protocol negotiation, credentials, certificates, client compatibility, or permissions are correct. Confirm that the tunnel points to the intended local service, especially when several LAN hosts reuse the same port number.
A UDP service appears silent
Use an application-level request that should produce a known response, verify that the service listens on the expected address and port, and check local firewall behavior. Make sure the service is actually UDP rather than assuming its transport from a familiar port.
All applications behind the proxy fail together
Check shared components first: the proxy process, listener, configuration, and HTTP tunnel targeting it. This is the expected failure-domain tradeoff of consolidation. If that shared failure boundary is unacceptable for a particular application, move it to a separate proxy instance or separate tunnel according to its requirements.
Verify the application, local network reachability, reverse-proxy routing if present, Localtonet client connectivity, tunnel state, and finally the external client path. This sequence isolates faults without changing several layers simultaneously.
Frequently asked questions
Can I expose multiple local web applications through one Localtonet HTTP tunnel?
Yes. A local reverse proxy can accept the HTTP traffic and route requests to the correct applications. The Localtonet HTTP tunnel targets the proxy's reachable local IP address and port. You remain responsible for explicit routing, authentication, authorization, safe unmatched-route behavior, and application compatibility with the selected path or hostname arrangement.
Can several applications use paths under one Localtonet public hostname?
Yes, when the local reverse proxy routes those paths and each application supports its assigned base path. Verify assets, redirects, cookies, callbacks, WebSockets, and origin-sensitive behavior because applications designed only for the root path may not work correctly beneath a prefix.
Can I route several public hostnames through one tunnel?
Do not assume so from local reverse-proxy support alone. Several external hostnames depend on currently supported Localtonet custom-domain and DNS behavior, as well as correct host handling by the proxy and applications. Verify the current dashboard options and DNS instructions before implementing that design.
Should every local service receive its own tunnel?
Not necessarily. Related HTTP applications with the same owner, audience, policy, and lifecycle may be easier to operate behind one reverse proxy. Separate tunnels are clearer when protocols, owners, audiences, sensitivity levels, or maintenance schedules differ. A hybrid arrangement is often the best design.
Can a reverse proxy route raw TCP or UDP services by URL path?
Ordinary HTTP path routing applies to HTTP requests, not arbitrary TCP or UDP protocols. Use a Localtonet TCP, UDP, or combined UDP/TCP tunnel as appropriate. Some proxy products have separate stream or gateway capabilities, but those are product-specific and are not ordinary HTTP path routing.
Does creating a Localtonet tunnel make it immediately available?
No. Creating the configuration and running it are separate lifecycle actions. Start the tunnel using the Start control. The selected client must also be connected, and the local target must be reachable from that device.
Does one HTTP tunnel provide authentication for every application behind it?
Do not assume so. Routing and connectivity are not substitutes for authorization. Each application or a deliberately configured access layer must enforce the required identity and permissions. Test both unauthenticated and unauthorized requests before sharing the public address.
Why does my application think the request uses HTTP or localhost?
The browser-facing URL and the local proxy-to-application hop can have different scheme and host values. Configure the selected proxy to represent the external request according to its documentation, then configure the application framework to trust that metadata only from the known proxy. Prefer an explicit public URL or allowed-origin configuration where supported.
Can the Localtonet client reach a service on another LAN device?
A local target may be on or reachable from the client device. Confirm the LAN route, service bind address, and host firewall from the Localtonet client device before creating the tunnel. A tunnel cannot compensate for an unreachable local target.
Does using multiple tunnels mean Localtonet opens one underlying connection per service?
This guide makes no claim about that internal implementation detail. Public tunnel configuration count and underlying transport connection count are not necessarily the same concept. Choose the architecture according to protocol correctness, security boundaries, ownership, routing, and lifecycle needs.
When should I stop or delete a tunnel?
Stop a tunnel when remote access is temporarily unnecessary. Delete it when the configuration should no longer be retained. For sensitive workflows, also revoke application credentials and remove obsolete reverse-proxy routes because disabling connectivity does not retire application authorization.
Publish each service through the right boundary
Inventory your applications, consolidate compatible HTTP services only where a shared reverse proxy improves the design, and use separate Localtonet HTTP, TCP, UDP, or combined UDP/TCP tunnels when protocol, ownership, security, or lifecycle boundaries require them.
Get Started Free →Corrections & updates
Substantive changes approved by the Localtonet editorial team are listed transparently below.
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.