<!-- canonical: https://hostdc.xyz/host/web-apps · last updated 2026-10-24 · HostDC, Hosting for Discord, Stoat and Telegram bots and other always-on apps. -->

# Host a web app

Only Pro and Max get a web address: one HTTPS address per bot or app, for a small site, an API or a webhook. We handle the certificate; your app only answers plain HTTP on one port.

## How it works

Your app listens on a port inside its sandbox, 3000 unless you pick another. On the app's page you open the Web port card, pick a name and save. The address is `https://<name>.<ending>`, for example `https://my-app.hostedon.hostdc.xyz`, and requests to it reach your port.

Listen on `0.0.0.0`, not `127.0.0.1`. An app that only listens on localhost can't be reached from outside its sandbox.

## How to start

**1. Pick a template or bring your code.** [Web app (Python)](/templates/web-app-py) is a small FastAPI app. [Web app (JavaScript)](/templates/web-app-js) is the same with Express. Both answer on `/` and `/health`.

**2. Press Deploy.** Wait until the console says the server is running.

**3. Turn on the address.** On the Web port card, pick a name, keep the port at 3000 and press Save. To use another port, set `PORT` on the Secrets tab and enter the same number on the card.

## Limits

- One HTTPS address per bot or app.
- 60 requests per second, 10 MB per request body, 30 seconds per request.
- Free (a 256 MB RAM pool), Mini and Lite have no web port. Apps on those plans can still reach the internet, but nothing can connect in.

Pro is $2.79 a month and Max is $4.99 a month. The [pricing page](/pricing) has every limit.

## Related

- [Scripts and always-on apps](/host/apps)
- [Databases](/host/databases)
- [Host a Node.js bot](/host/node)
- [Host a Python bot](/host/python)

## FAQ

### Can I use my own domain?
Not yet. The address is a name in front of one of our endings, such as `hostedon.hostdc.xyz`.

### Can a Telegram bot use a webhook?
Yes, on Pro and Max: point the webhook at your HTTPS address. On the other plans, use long polling. See [Telegram bots](/host/telegram).

### Can I host a big website here?
This is for small sites and APIs that belong to a bot or app. The request limits above apply to every address.
