Skip to content

Self-Host EzyFox Server with Localtonet

Set up and verify an EzyFox real-time server, then connect remote game or messaging clients through a Localtonet TCP tunnel.

Summary in your language
In this article 10 sections
Framework Integration · EzyFox TCP · Localtonet · 2026

Connect a verified EzyFox TCP application to remote clients through a controlled public endpoint

EzyFox Server is a Java framework for building real-time socket applications, not a universal ready-to-run game or chat server. This integration guide explains how to validate the EzyFox framework source, identify the deployment details supplied by your own EzyFox application, prove its TCP listener locally, and forward that listener through Localtonet. It deliberately does not invent an application launcher, configuration path, default port, or client protocol that the EzyFox project does not define globally.

🔒 Keep authentication and transport security in the application 🌐 Forward a verified TCP listener through an outbound tunnel ⚡ Diagnose local, tunnel, and client failures separately
Remote clients connect through a Localtonet TCP tunnel to an EzyFox application running on a private workstation
Localtonet forwards remote TCP connections to an already running and locally verified EzyFox application.

What this EzyFox integration guide does and does not cover

The official EzyFox Server repository describes EzyFox as a socket server for real-time applications, games, MMORPG backends, messaging, chat, and streaming data. Its current repository description explicitly identifies TCP, UDP, WebSocket, and SSL. It does not establish HTTP as a supported EzyFox transport, so this guide does not include HTTP in the framework transport list.

EzyFox is a framework on which developers build an application. An actual EzyFox deployment can contain custom plugins, handlers, commands, session rules, authentication, data storage, client message schemas, and environment-specific configuration. Those choices determine how the server is packaged, started, tested, and operated.

There is therefore no evidence-backed command, port, path, or credentials that can be presented as a universal EzyFox application setup. The repository-level mvn test command validates the source tree through its configured Maven test lifecycle. It does not install a finished game server, start a persistent application listener, or supply a compatible client.

This is a framework integration guide

Use this workflow after selecting or building a runnable EzyFox application with documented packaging, configuration, startup, and client instructions. The guide covers the shared integration boundary: establish a known-good TCP listener, confirm that the Localtonet client can reach it, create and start a TCP tunnel, and repeat the application test through the assigned public endpoint.

If you are starting a new project, consult the getting-started material linked from the official EzyFox README. That README is the verified project entry point available for this revision. Once the selected example or application has its own documented launcher and listener configuration, return to the verification and tunneling stages in this guide.

What you need from the selected application

  • A supported EzyFox Server release or dependency version.
  • A documented Java and Maven requirement for that application.
  • A repeatable build or packaging procedure.
  • An application-specific startup command or service definition.
  • The configured transport, bind address, and listening port.
  • Any required modules, databases, certificates, secrets, or other dependencies.
  • A compatible client capable of completing a meaningful application exchange.
  • A documented shutdown and update procedure suitable for the deployment.

If any of these items are missing, resolve them in the application project before presenting the result as a self-hosted service. A listening Java process alone does not prove that a usable EzyFox application has been deployed.

Understand the EzyFox and Localtonet architecture

Topology showing remote clients reaching a private EzyFox TCP listener through a Localtonet public endpoint
Remote clients connect to the assigned Localtonet host and port, and the running tunnel forwards their TCP traffic to the configured private target.

The complete path contains four distinct layers. The EzyFox application owns application behavior. The host operating system owns the process and listening socket. Localtonet provides public TCP forwarding to the selected local target. The remote client implements the protocol expected by the application.

Our client runs either on the EzyFox host or on another device that can reach it. The client establishes an outbound connection to a Localtonet relay server. When the TCP tunnel is running, remote clients receive a public host and port through which TCP traffic is forwarded to the selected local IP address and port.

This design does not require inbound router port forwarding, firewall changes, VPN setup, or a public IP address. It also does not alter the EzyFox protocol. Localtonet does not create application handlers, choose a listener, translate messages, add EzyFox authentication, or make an incompatible client work.

🧩 EzyFox application Defines handlers, sessions, authentication, messages, persistence, application logic, and the network listener used by its clients.
🔌 Private TCP target Identifies the address and port on which the running application accepts compatible TCP client connections.
➡️ Outbound relay connection The Localtonet client connects outward from the private network to the selected relay server.
🌐 Public host and port Remote clients use the endpoint assigned to the running TCP tunnel instead of a private LAN or loopback address.

Why this guide uses TCP

TCP is explicitly identified by the EzyFox project and is a suitable focus when the selected application exposes a raw TCP listener. TCP provides an ordered byte stream, but it does not define the messages carried inside that stream. Message framing, serialization, login behavior, commands, and authorization remain application-specific.

Do not substitute TCP for another transport merely because the server and client are built with EzyFox. The current repository identifies TCP, UDP, and WebSocket, with SSL support. An application can enable only the transport or transports its developer selected. A UDP or WebSocket client is not compatible with an arbitrary raw TCP endpoint.

SSL also requires careful terminology. Its presence in the project description does not prove that every application enables encryption or that a Localtonet TCP tunnel configures application-layer SSL automatically. If your application performs SSL negotiation, its server and client configuration must remain compatible when the destination changes to the public tunnel endpoint.

Layer Responsibility Required evidence
EzyFox application Protocol, handlers, sessions, messages, authentication, and application state A documented build, configuration, launcher, and compatible client
Host operating system Java process, network interfaces, permissions, and listening socket A running process and verified TCP listener
Localtonet client Outbound connection from the selected device to our relay A connected device with a protected device-specific token
Localtonet TCP tunnel Forwards public TCP connections to the configured private target A started tunnel with the correct local IP address and port
Remote client Connects to the public endpoint and speaks the application protocol Compatible code, valid credentials, and the assigned public host and port
Reachability is not application compatibility

A successful TCP connection proves only that a socket accepted the connection. It does not prove that login, message decoding, session setup, authorization, SSL negotiation, or application commands succeeded. Verify a complete application action at every important checkpoint.

Prepare the development and hosting prerequisites

The current EzyFox repository README lists JDK 1.8 and Maven as development requirements. Verify the active tools in the terminal where you intend to work:

java -version
mvn -version

The first command identifies the Java runtime selected by the shell. The second reports Maven and the Java runtime Maven is using. This distinction matters on systems with multiple Java installations because Maven can run with a different JDK than the one you expected.

JDK 1.8 is the framework repository's stated development requirement. It does not prove that every independent EzyFox application supports every newer Java release or that an older application has no additional constraints. Follow the application build definition and deployment documentation when those requirements are more specific.

Choose a deliberate EzyFox version

Use the release or commit required by your application. The project publishes EzyFox Server release 1.3.2.1, dated October 11 in its release record, with the note “Allow extending protocols.” The existence of that release does not establish compatibility with your application, client SDK, modules, or deployment scripts.

Pinning a known version is preferable to changing framework dependencies during a tunneling exercise. First establish a working application with its intended framework version. Evaluate upgrades separately, test client compatibility, and retain a rollback path appropriate to the project.

Prepare a compatible application client

A generic port probe is useful for checking reachability, but it cannot complete an EzyFox application protocol. Obtain the client or test harness associated with the application. It should be able to connect, authenticate where required, and perform a deterministic action such as joining a test session, sending a message, or receiving a known response.

Use the same client build for the local and remote checks whenever possible. A consistent client lets you change only the destination between tests, which makes differences easier to diagnose.

Prepare Localtonet

You need a Localtonet account, the Localtonet client on the device that will run the tunnel, and that device's auth token. The token identifies the client device and must remain private. Available relay servers or regions must be selected from the current product interface rather than copied from an article.

Review the current Localtonet documentation alongside this workflow for current product navigation and tunnel options. Do not assume that every server, option, or capability is included in every subscription plan.

Decide where the Localtonet client will run

The most direct arrangement puts the EzyFox application and Localtonet client on the same machine. The tunnel can then target the address on which the application is reachable from that client process, including loopback when the application is bound appropriately.

The Localtonet client can also run on another device. In that arrangement, it must be able to reach the EzyFox host over the private network. A listener bound only to 127.0.0.1 on the EzyFox machine is not reachable from another device. Use a private address and application binding that permit the intended path, then test from the Localtonet client device before creating the tunnel.

The same rule applies to containers and virtual machines. The target must be reachable from the network environment in which our client runs. This article does not invent a Docker image, container port mapping, or Compose file because no official EzyFox container workflow was established by the supplied evidence.

Validate the EzyFox framework source correctly

Process diagram separating EzyFox framework source validation from application installation and startup
Running repository tests validates the source checkout, while deploying an application requires its own packaging, configuration, launcher, and client procedure.

If you are developing against the framework itself, clone the official repository and run the documented Maven test lifecycle:

git clone https://github.com/youngmonkeys/ezyfox-server.git
cd ezyfox-server
mvn test

These are the only concrete EzyFox commands used in this guide because they are established by the repository evidence. The final command runs the configured tests. A successful result shows that Maven could execute that checkout's test lifecycle in the active environment.

It does not establish any of the following:

  • That a finished EzyFox application was installed.
  • That a persistent Java server process was started.
  • That a TCP port is listening.
  • That an application module or plugin was loaded.
  • That a database or another external dependency is available.
  • That a remote client can authenticate or exchange messages.
  • That the checked-out branch matches the version required by your application.

When reproducibility matters, check out the exact release or commit selected by the application maintainers rather than relying implicitly on the repository's moving default branch. The precise checkout procedure should come from your project's version-management policy.

Do not turn a test command into a launcher

The verified repository material does not define mvn test as a production startup command. It also does not establish one universal executable, archive path, configuration directory, listener port, or launch command for all EzyFox applications.

Prepare a runnable EzyFox TCP application

The application project is the authoritative source for the deployment steps that the framework repository cannot supply. Follow its documented sequence to install dependencies, configure required services, package the application, select the TCP listener, and start the server.

Before starting it, create a small deployment record. This reduces mistakes when the listener information is copied into Localtonet.

Deployment item Authoritative source Why it matters
Framework version Application dependency or release documentation Keeps the server, plugins, and client SDK compatible
Java version Application build and runtime documentation Prevents build or startup failures caused by runtime mismatch
Launcher Application deployment documentation Starts the actual service rather than only building or testing code
Transport Server and client configuration Confirms that a raw TCP tunnel matches the application
Bind address Application network configuration Determines which local devices can reach the listener
TCP port Application configuration and runtime listener Becomes the Localtonet target port
SSL behavior Application and client configuration Must remain compatible across the tunneled connection
Authentication Application logic and identity configuration Controls who can establish a valid application session

Choose the bind address deliberately

If the application and Localtonet client run on the same host, a loopback listener can be appropriate when supported by the deployment. It limits direct LAN reachability while allowing the local tunnel client to connect.

If the Localtonet client runs on another machine, the server must listen on an interface reachable from that machine. Avoid binding to every interface merely as a troubleshooting shortcut. A broader binding can expose the service to other devices on the local network. Select the narrowest interface that supports the intended architecture.

Identify the actual listening port

Use the port defined by the selected application's configuration. Do not copy a port from an unrelated EzyFox example, another framework, or an old deployment. After startup, confirm that the process opened the expected TCP socket. The configured value and runtime state should agree.

Preserve application authentication

Public reachability does not replace login, authorization, session validation, or input validation. Keep those controls enabled during testing. Never place the Localtonet device token, database credentials, server private keys, or administrative secrets in a distributed client.

Keep transport security explicit

A raw TCP tunnel forwards bytes between the public endpoint and the selected local target. Do not describe that forwarding as proof that Localtonet terminates or creates application SSL. If your EzyFox application requires SSL, configure and test it according to the application's own server and client documentation.

Start and verify the application locally

Start the application with its documented launcher and keep the startup output available during initial testing. Look for a clean startup, successful initialization of required modules and dependencies, and evidence that the intended listener opened. Exact messages vary by application, so a log phrase from one project should not be treated as a universal EzyFox health signal.

Use a layered local test

  1. Confirm that the Java process remains running after initialization.
  2. Confirm that the expected TCP address and port are listening.
  3. Connect with a compatible client from the EzyFox host when that path is supported.
  4. If Localtonet will run elsewhere, connect from that device using the EzyFox host's reachable private address.
  5. Complete authentication or session establishment when the application requires it.
  6. Perform one deterministic application action and confirm the expected response.

The last step is critical. A port check can reveal that something accepts a TCP connection, but it cannot prove that the correct server is listening or that its protocol works. A meaningful application exchange tests client compatibility, message handling, authentication, and server behavior together.

Create a known-good baseline

Record the server build, client build, transport, local destination, authentication result, and successful test action. Also note whether SSL is enabled and which endpoint identity the client expects. This baseline becomes the comparison point for the remote test.

If the local application test fails, do not add a tunnel yet. Repair the application, configuration, dependencies, listener, client compatibility, or credentials first. Tunneling an unhealthy endpoint adds another layer without resolving the existing failure.

Local verification must happen from the tunnel client's network position

A successful test on the EzyFox host is not enough when Localtonet runs on another device. Test the exact private IP address and port from the Localtonet client device. That confirms the route, bind address, host firewall behavior, and network policy needed by the tunnel.

Forward the verified EzyFox listener with Localtonet

Localtonet interface showing a connected TCP tunnel forwarding to a private EzyFox listener
The tunnel can target loopback when both processes share a host, or another private IP address and port reachable from the Localtonet client device.

Configure the tunnel only after the application passes its local test. The target must be the same reachable TCP listener used for that verification. Follow this sequence:

1

Install and run the Localtonet client

Run our client on the EzyFox host or on another device that can reach the verified private TCP endpoint. The client must remain connected whenever the tunnel is needed.

2

Authenticate or select the intended device

Use the device-specific auth token associated with the client that will run the tunnel. Protect it as a secret and do not include it in code, screenshots, logs, or client distributions.

3

Select an available relay server or region

Choose from the current options presented by Localtonet. Available values must come from the product rather than a hardcoded server code in an article.

4

Create the TCP tunnel

Select TCP and enter the EzyFox listener's reachable local IP address and port. Use loopback only when our client runs on the same host and the application is reachable there. Otherwise, use the private address verified from the Localtonet client device.

5

Start the tunnel

Creating a tunnel does not mean it is running. Use the Start button and confirm that the selected client device is connected. The tunnel is available only while that device is connected and the tunnel is running.

6

Test the assigned public endpoint

Configure one known-compatible remote client with the assigned public host and port. Keep the application protocol, client version, credentials, and test action aligned with the local baseline.

Update the client destination carefully

Replace the local or private destination with the host and port assigned to the running TCP tunnel. Do not assume that the public port is the same as the application's local port. Remote users should not be given a loopback address or private LAN address.

Change only the values required to reach the new destination. Avoid combining the first tunnel test with a framework upgrade, client update, authentication change, or message-schema migration. Limiting the number of changes makes failures easier to isolate.

Run the first test from another network

Use a remote device that is not relying on the same private path as the server. Watch the EzyFox application logs and Localtonet connection state while the client connects. Confirm the same application-level action used in the local baseline.

If the socket opens but login or messaging fails, basic public TCP reachability may already be working. Compare protocol versions, credentials, message encoding, SSL expectations, and server-side handling with the local baseline before recreating the tunnel.

Creation and startup are separate lifecycle actions

A saved TCP tunnel configuration is not automatically an available endpoint. Start it explicitly. Stop it when the service should no longer be public, or delete it when the configuration is no longer required.

Secure and operate the public TCP service

A public TCP endpoint can receive connection attempts from the internet. The EzyFox application must treat all remote input as untrusted and enforce its own identity, authorization, validation, and resource controls.

🔐 Application authentication Require valid user or service credentials before granting access to protected sessions, commands, or data.
🛡️ Least privilege Expose only the listener needed by remote clients and keep development administration interfaces private.
🔑 Secret separation Keep Localtonet device tokens, database credentials, signing material, and private keys out of distributed clients and public repositories.
✅ Input validation Validate message sizes, commands, identifiers, state transitions, and other client-controlled values inside the application.

Use a predictable startup order

  1. Start any database or dependency required by the application.
  2. Start the EzyFox application with its documented launcher.
  3. Confirm the local listener and complete the health test.
  4. Start or verify the Localtonet client connection.
  5. Start the TCP tunnel.
  6. Repeat the application test through the public endpoint.

This order avoids forwarding traffic to a port with no healthy application behind it. For shutdown, stop public access when appropriate, allow the application to handle active sessions according to its design, and then stop the server and its dependencies.

Monitor both processes

The EzyFox application and Localtonet client are separate processes with separate failure modes. The application can stop while the client remains connected, or the client can disconnect while the application remains healthy. Operational monitoring should distinguish those conditions.

The tunnel is available only while the selected device is connected and the tunnel is running. Host sleep, network loss, a reboot, or stopping our client can interrupt public access. The EzyFox process must also remain active and reachable at the configured target.

Plan upgrades separately

Test framework, application, module, and client changes outside the live deployment before updating it. A newer EzyFox release does not by itself guarantee compatibility with an existing application's code or client SDK. Preserve configuration backups and maintain a rollback procedure suitable for the project.

A TCP tunnel does not supply application security

Localtonet provides reachability to the configured target. Authentication, authorization, protocol correctness, application-level transport security, abuse controls, and safe command handling remain responsibilities of the EzyFox application and its operator.

Troubleshoot the integration from the inside out

Java or Maven is not available

Run java -version and mvn -version in the same terminal used for the project. If either command is unavailable, install or configure the required tool through the supported method for your operating system. If Maven reports an unexpected Java runtime, correct the active environment according to the application's requirements.

mvn test succeeds, but no port is listening

This is not evidence of a tunnel problem. The command runs the repository tests and is not documented as a universal application launcher. Start the actual EzyFox application with its own supported procedure, then confirm its configured listener.

The application exits during startup

Inspect its startup output before changing Localtonet. Check for a Java version mismatch, missing configuration, an unavailable database or dependency, insufficient permissions, a port conflict, or an application exception. The exact error and resolution are project-specific.

The expected TCP port is not listening

Confirm that you launched the application rather than only compiling or testing the framework. Recheck the application's transport, bind address, port, and active configuration. Another process may already use the port, or the application may have loaded a different environment file than expected.

The application works on the host but not from the Localtonet client device

This usually points to the private network path. A loopback-only listener cannot be reached from another machine. Verify the EzyFox bind address, private target address, host firewall policy, network segmentation, and route from the device running our client.

The tunnel was created, but the endpoint is unavailable

Confirm that the selected Localtonet device is connected and that the tunnel was explicitly started. Then verify that the EzyFox process is running and the target IP address and port still match its listener. Creation alone does not place the tunnel in a running state.

The public socket opens, but login fails

Compare the remote client with the known-good local client. Check client and server versions, credentials, session setup, message serialization, command names, SSL expectations, and authorization. Localtonet forwards TCP traffic and does not translate EzyFox application messages.

The client uses UDP or WebSocket

Do not point it at this raw TCP tunnel and assume compatibility. The server listener, client implementation, and Localtonet tunnel family must match. This guide covers only an EzyFox application that has been verified to use a TCP listener.

SSL works locally but fails through the public endpoint

Preserve the exact client error and compare endpoint identity, certificate validation, server configuration, and the destination name used by the client. Do not disable validation merely to make the connection appear successful. A raw TCP tunnel does not rewrite the application's SSL configuration.

Connections stop after sleep or restart

Verify both sides of the local integration. The EzyFox application must be running, and the Localtonet client must be connected with the tunnel started. Configure automatic startup only through procedures appropriate to your operating system and application. Do not invent a generic EzyFox service command.

Recommended diagnostic order

Check the application process, local listening socket, local application exchange, reachability from the Localtonet client device, Localtonet device connection, tunnel running state, public endpoint, and remote application exchange in that order. The first failing checkpoint identifies the layer that needs attention.

Frequently asked questions

Is EzyFox Server a ready-made multiplayer game server?

No. EzyFox Server is a framework for building real-time socket applications. A runnable deployment still needs application logic, handlers, configuration, authentication, startup instructions, and a compatible client.

Why does this guide not provide a universal EzyFox startup command?

The verified project material does not establish one launcher, package layout, configuration path, or startup command for every EzyFox application. Those details must come from the specific application or official example being deployed.

Does running mvn test install or start an EzyFox application?

No. The repository documents mvn test for running its configured tests. Treat it as source-tree validation, not as an installation or persistent server startup command.

What is the default EzyFox TCP port?

The verified evidence does not establish one universal port for all EzyFox applications. Use the port configured by the selected application and confirm that its running process actually listens there.

Which EzyFox transports are established by the current repository description?

The current official repository description identifies TCP, UDP, WebSocket, and SSL. It does not establish HTTP, so HTTP is not presented here as an EzyFox transport. This guide covers only a verified raw TCP application listener.

Must Localtonet run on the same machine as EzyFox?

No. Our client can run on another device that can reach the EzyFox listener. In that arrangement, target the server's reachable private IP address and port rather than its loopback address, and verify that path before starting the tunnel.

Does this workflow require router port forwarding?

No. The Localtonet client establishes an outbound connection to a relay server. The running TCP tunnel provides a public host and port without requiring inbound router port forwarding, firewall changes, VPN setup, or a public IP address.

Does a Localtonet TCP tunnel add authentication or SSL to EzyFox?

Do not assume that it does. The TCP tunnel forwards connections to the configured target. The EzyFox application remains responsible for authentication, authorization, session security, input validation, and any application-level SSL behavior.

Why does the endpoint stop working when the host is offline?

The public endpoint is available only while the selected Localtonet client device is connected and the tunnel is running. The EzyFox application must also remain active and reachable at the configured local target.

Connect your verified EzyFox TCP application with Localtonet

Once a compatible client can complete a meaningful exchange with your EzyFox application locally, create and start a Localtonet TCP tunnel, then repeat the same test through the assigned public host and 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