# Connection 2 with different concurrency limit
asyncio.run(
    connect(
        apps=[(client, functions)],
        instance_id="worker-1-conn-2",
        max_worker_concurrency=20,
    ).start()
)
```
</CodeGroup>

## Self hosted Inngest

<Info>
  Self-hosting support for `connect` is in development. Please [contact us](https://app.inngest.com/support) for more info.
</Info>

If you are [self-hosting](/docs/self-hosting?ref=docs-connect) Inngest, you need to ensure that the Inngest WebSocket gateway is accessible within your network. The Inngest WebSocket gateway is available at port `8289`.

Depending on your network configuration, you may need to dynamically re-write the gateway URL that the SDK uses to connect.

```ts
await connect({
  apps: [...],
  rewriteGatewayEndpoint: (url) => { // ex. "wss://gw2.connect.inngest.com/v0/connect"
    // If not running in dev mode, return
    if (!process.env.INNGEST_DEV) {
      new URL(url);
      clusterUrl.host = 'my-cluster-host:8289';
      return clusterUrl.toString();
    }
    return url;
  },
})
```

{/* TODO: multiple apps in a single worker */}

## Migrating from serve

<Info>
  We are working on enabling more fine-grained function and app migrations from existing `serve` apps to `connect`.
</Info>

During the Inngest developer preview, we recommend setting up a new app for trying out `connect`. We will support gradually migrating your existing `serve` apps in a future release.

## Developer preview

The `connect` API is currently in developer preview. This means that the API is not yet recommended for critical production workloads and is subject to breaking changes.

During the developer preview, the `connect` API is available to all Inngest accounts with the following plan-limits:

* Free plan: 3 concurrent worker connections
* All paid plans: 20 concurrent worker connections
* Max apps per connection: 10

Final plan limitations will be announced prior to general availability. Please [contact us](https://app.inngest.com/support) if you need to increase these limits.

Read the [release phases](/docs/release-phases) for more details.

### Limitations

During the developer preview, there are some limitations to using `connect` to be aware of. Please [contact us](https://app.inngest.com/support) if you'd like clarity on any of the following:

* **Reconnection policy is not configurable** - The SDK will attempt to reconnect to Inngest an infinite number of times. We will expose a configurable reconnection policy in the future.