# Forwarding and topologies

> Which Minekube Connect setup fits your Minecraft network: player addresses, Connectors, forwarding modes and Bedrock support for each topology.

Connect can sit in front of many Minecraft server layouts. The important first step is to identify which address the
player uses and which component is responsible for authentication, forwarding, and Bedrock translation.

## Choose the right path

- **Which address do players join?**
  - **A Connect address** *`<endpoint>.play.minekube.net`, `minekube.net` or a Connect custom domain. The Connect edge handles Bedrock.*
    - **Where does the Connector run?**
      - **Paper or Spigot** [Connect plugin](#paper-or-spigot-with-the-connect-plugin) *The simplest managed setup.*
      - **Velocity or BungeeCord** [Connect plugin on the proxy](#velocity-or-bungeecord-with-the-connect-plugin) *When the proxy is your network's public entry point.*
      - **Gate** [Gate with `connect` enabled](#standard-gate-with-connect-enabled) *For Gate you already run.*
  - **Your own Gate address** *A hostname or IP that points at your Gate*
    - **Standard Gate** [Gate on its own address](#standard-gate-with-connect-enabled) *Bedrock only with `bedrock: true`.*
  - **TCPShield and Connect** *Java through TCPShield, Bedrock through Connect*
    - **Two Connectors** [Two ingress paths](#tcpshield-and-connect-together) *Connect handles Bedrock on its own address only.*
  - **A public backend IP or port**
    - **No Connector** [Direct connection](#direct-backend-connections) *Development only, or a deliberate direct setup.*

If the player joined through a Connect address, do not diagnose it as direct Gate Bedrock or direct backend traffic.

## Paper or Spigot with the Connect plugin

This is the smallest setup. Install the Connect plugin and let players join the endpoint name, `play.minekube.net`
subdomain, or custom domain attached in the dashboard.

Use this topology when:

- the backend is a single Paper or Spigot server
- you want Connect to manage public ingress
- Bedrock players should join through the same Connect address as Java players

Keep Paper `online-mode=true` unless you intentionally run an offline-mode server. If you allow offline-mode players,
use the Connect plugin's `allow-offline-mode-players` setting instead of opening a second direct backend path.

## Velocity or BungeeCord with the Connect plugin

Install the Connect plugin on the proxy when the proxy is the public entry point for the network. The proxy then keeps
its normal forwarding relationship with backend servers.

Check these pieces first when players join but have the wrong UUID, skin, permissions, or login state:

- the Connect plugin is installed on the proxy, not only on one backend server
- backend servers are configured for the proxy forwarding mode you already use
- Velocity, BungeeCord, Paper, and login plugins agree on online-mode behavior
- players are not bypassing the proxy through a direct backend address

Connect does not replace Velocity or BungeeCord forwarding between your proxy and backend servers. It gives the proxy a
managed public ingress path.

## Standard Gate with Connect enabled

Use this topology when Gate is your Java proxy and you want Connect to expose it through the Connect network. Connect
players reach the Connect edge first, then your Gate connector, then Gate routes to its configured backend servers.

For Connect-routed Bedrock players, translation is already handled before traffic reaches your Gate connector. You do
not need `bedrock: true` just because players use a Connect address.

Enable `bedrock: true` only when Bedrock clients also connect directly to the Gate address you host yourself.

## TCPShield and Connect together

Some networks keep TCPShield for Java traffic while adding Connect for managed Bedrock or additional endpoint routing.
That can work, but treat it as two ingress paths:

- Java players using the TCPShield address follow the TCPShield and proxy forwarding path.
- Java or Bedrock players using a Connect address follow the Connect path.
- Account, UUID, skin, and IP-forwarding behavior can differ between those paths if the backend/proxy is not configured
  consistently.

When debugging, always ask which address the player used. A kick that happens through `minekube.net` may not reproduce
through a TCPShield hostname, and the reverse is also true.

## Direct backend connections

Direct backend connections are useful for local debugging but should not be mixed casually with Connect or proxy
ingress. If players can bypass the proxy and join a backend directly, the backend may see different online-mode,
forwarding, UUID, skin, permission, or IP information.

For production, prefer one public path per player group and make the backend reject unintended direct traffic.

## Quick debug checklist

1. Ask for the exact address the player joined.
2. Identify the connector: Paper/Spigot plugin, Velocity plugin, BungeeCord plugin, or Gate connector.
3. Identify whether the player is Java or Bedrock.
4. Identify whether Bedrock is Connect-routed or direct Gate Bedrock.
5. Check whether the backend is reachable directly and whether players might bypass the intended proxy.
6. For UUID, skin, permission, or login issues, check forwarding and login-plugin configuration before changing Connect.
