Self-hosted app·Video and streaming
Ant Media Server on a VPS in the Swiss Alps.
Ant Media Server VPS in ALP1, Swiss Alps: ports, sizing, Docker on Debian 13, egress maths and the Community vs Enterprise catch.
- Docker
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port15 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $116.99 a year, about 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 4 vCPU, 4 GB RAM
- 160 GB NVMe local storage
- 15 TB transfer on a 1 Gbps port
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/06
Short answer.
Yes. Ant Media Server runs on our Standard plan in ALP1 for 12.99 USD a month, with the 250 GB bucket add-on for recordings, deployed in Docker on Debian 13. If you self-host Ant Media Server for a cam site, the constraint that bites first is egress. A WebRTC server sends every viewer a separate copy of the stream, so outbound bandwidth grows with each person watching, and the UDP range 50000–60000 has to reach the box unfiltered or viewers get a black player.
The other decision is the licence. The free Community Edition accepts WebRTC from a performer's browser but plays it back over HLS with 8–12 seconds of delay. Sub-second WebRTC playback, which keeps a tip and the performer's reaction in the same moment, needs the Enterprise Edition, and that licence comes from Ant Media, not from us.
02/06
What Ant Media Server is and who runs it.
Ant Media Server (AMS) is a Java streaming engine built by Ant Media, whose founders started it as a small team in Ankara. It takes in WebRTC, RTMP, SRT and RTSP, plays out over WebRTC or HLS, and records to MP4 and WebM. The Community Edition is Apache-2.0 on GitHub. The Enterprise Edition is licensed per server, monthly, yearly or perpetual, and adds one-to-many WebRTC playback, adaptive bitrate and clustering. The current release is 3.1.0, published on 31 August 2026: it moves to Java 21, adds installer support for Ubuntu 26.04 and closes a long list of 2026 CVEs, which is reason enough to track releases on any media server facing the internet.
In the cam business AMS turns up in two places: inside platforms operators build themselves, and inside turnkey cam scripts. Adentio's xCams, for instance, uses the Community Edition as its default media server and lets the operator switch to Enterprise without changing code. The architecture is the same either way. The performer publishes one stream, AMS acts as a selective forwarding unit (SFU), and each viewer receives a relayed copy. For the wider picture of running a cam platform with us, see our page on adult content under Swiss law.
Our servers are in Switzerland and answer to Swiss law. We act only on orders from competent Swiss authorities, and a request from abroad has to pass through one of them first.
03/06
Requirements and sizing.
Ant Media documents a floor of 4 vCPUs (compute-optimised) and 8 GB of RAM for a single instance, on SSD storage. Its native installer supports Ubuntu 20.04, 22.04 and 24.04, CentOS 9, Rocky Linux 9 and AlmaLinux 9. Debian is not on that list, so we run AMS from Ant Media's official Dockerfile, which builds on ubuntu:24.04. The container gets a userland Ant Media tests against, and Debian 13 underneath handles the kernel and the firewall.
| Port | Protocol | Used for | Expose |
|---|---|---|---|
| 80 | TCP | Let's Encrypt certificate issuance | Public |
| 5443 | TCP | HTTPS panel, REST API, WebSocket signalling | Public |
| 5080 | TCP | Plain-HTTP panel | Closed; use an SSH tunnel |
| 1935 | TCP | RTMP ingest from OBS and hardware encoders | Public, or performers' IPs only |
| 4200 | UDP | SRT ingest | Only if you use SRT |
| 50000–60000 | UDP | WebRTC media | Public |
| 5000 | TCP | Cluster traffic | Never public |
| 3478 | UDP/TCP | TURN (coturn), optional | Public, with credentials |
The bandwidth arithmetic is short and unforgiving. The figures below are theoretical: bitrate per viewer multiplied by concurrent viewers, before packet overhead and retransmissions.
| Scenario | Bitrate per viewer | Concurrent viewers | Server egress |
|---|---|---|---|
| One busy room, 720p30 | 2.5 Mbit/s | 40 | 100 Mbit/s |
| Small cam site, 720p30 | 2.5 Mbit/s | 200 | 500 Mbit/s |
| 1 Gbit/s port, full, 720p30 | 2.5 Mbit/s | 400 | 1 Gbit/s |
| 1 Gbit/s port, full, 1080p30 | 4.5 Mbit/s | about 220 | 1 Gbit/s |
Held for eight evening hours a day, the 500 Mbit/s case comes to about 54 TB a month (theoretical). On a cloud that bills egress per gigabyte, that volume becomes the largest line on the invoice, and the usual escape route is closed: Cloudflare's service terms require customers on Free, Pro and Business plans to use paid products such as Stream to serve video through its CDN, and reserve the right to limit those who don't. WebRTC media would not pass through a caching CDN anyway, since it is per-viewer UDP straight from the origin.
CPU is the smaller problem while AMS only forwards packets. It becomes the main one once adaptive bitrate is on, because every incoming stream is then decoded and re-encoded into several renditions. AMS protects itself: above 75 % CPU or 75 % memory (the defaults) it reports high resource usage and refuses new publishers and players, which a cam site experiences as rooms that will not open. Operators pushing the 10–25 Gbit/s that larger cam networks need belong on dedicated servers in ALP1, not on a VPS.
Latency has a physical floor. Light in fibre covers about 200 km per millisecond, so every 100 km of fibre path adds roughly 1 ms to the round trip (theoretical); real routes are never straight.
04/06
How to deploy it with us.
- 01Order Cloud VPS Standard with Debian 13 and add a 250 GB bucket. Point an A record, say
stream.example.com, at the VPS address. - 02Install Docker Engine and the Compose plugin from Docker's Debian repository.
- 03Fetch Ant Media's Dockerfile and create the volume. For the Community Edition, download the zip from the 3.1.0 release page on GitHub into the same directory; Enterprise users build with their licence key instead.
mkdir -p /opt/antmedia && cd /opt/antmedia
wget https://raw.githubusercontent.com/ant-media/Scripts/master/docker/Dockerfile_Process -O Dockerfile
docker volume create antmedia_volume- 04Write
docker-compose.yml. This is Ant Media's own file with the persistent volume enabled and a Java heap limit added through the-joption ofstart.sh:
services:
antmedia:
build:
context: ./
dockerfile: ./Dockerfile
container_name: antmedia
restart: unless-stopped
entrypoint: /usr/local/antmedia/start.sh
# leave RAM for the native media libraries, which live outside the Java heap
command: ["-j", "-Xms1g -Xmx4g"]
network_mode: host
volumes:
- antmedia_vol:/usr/local/antmedia/
volumes:
antmedia_vol:
external: true
name: antmedia_volume# use the exact zip name shown on the release page
docker compose build --build-arg AntMediaServer=ant-media-server-community-3.1.0.zip
# Enterprise instead: docker compose build --build-arg LicenseKey=<YOUR_LICENSE_KEY>
docker compose up -d && docker compose logs --tail 50network_mode: host is deliberate. Publishing a 10,000-port UDP range through Docker's NAT is slow and memory-hungry, ICE candidates would carry the container's private address, and Docker's own iptables chains would sidestep the host firewall. With host networking, the rules you set on Debian apply to AMS directly.
- 05Open the firewall:
apt install ufw
ufw allow 22/tcp && ufw allow 80/tcp && ufw allow 5443/tcp && ufw allow 1935/tcp
ufw allow 50000:60000/udp
ufw enable- 06Create the admin account through an SSH tunnel instead of plain HTTP on the open internet:
ssh -L 5080:127.0.0.1:5080 root@<vps-ip>, then openhttp://localhost:5080. Enable Let's Encrypt forstream.example.comunder Settings → SSL. Browsers refuse camera access to pages without HTTPS, so for performers who broadcast from the browser this step is not optional. From then on, panel and signalling run athttps://stream.example.com:5443. - 07Add TURN only if you need it. Ant Media notes that AMS works without TURN even behind symmetric NAT; it becomes necessary for viewers on networks that block UDP. If coturn runs on the same VPS, narrow its relay range with
min-port/max-port, because the 32355–65535 range in Ant Media's coturn guide overlaps the WebRTC range above, and never run it without credentials. The TURN URI and credentials then go into the application's Settings → Advanced.
05/06
Cost.
| Item | Price | Notes |
|---|---|---|
| Cloud VPS Standard | 12.99 USD/month | Debian 13, ALP1 |
| 250 GB bucket add-on | $1.99 a month | Recordings and VoD |
| AMS Community Edition | Free | HLS playback, 8–12 s latency |
| AMS Enterprise Edition | Paid to Ant Media | Per server: monthly, annual or perpetual |
Recordings fill disks faster than people expect. An MP4 at 2.5 Mbit/s takes about 1.1 GB per hour, so 250 GB holds roughly 220 hours (theoretical). Move older footage to object storage rather than growing the VPS volume. The plan itself is described on the cloud VPS page, and every Ant Media Server hosting component we sell is listed on our pricing page.
Ordering is no-KYC: an email address is enough, and we accept crypto, from business customers as well. Top-ups carry a bonus, and the unused balance is refundable within 14 days. A second address is what lets you run TURN on TCP 443 next to the panel.
06/06
Limits and acceptable use.
Swiss law sets the lines we enforce. Article 197 of the Swiss Criminal Code makes it an offence to make pornography accessible to anyone under 16, so the site needs an age gate that works, and it prohibits material showing sexual acts with minors, with animals or involving violence. That material is not allowed on our network in any form.
As the operator, you carry obligations we cannot carry for you:
- verify that every performer is an adult and has consented, and keep the records the laws of your target markets require;
- age-gate viewers to the standard of each country you serve;
- take down recordings when a performer withdraws consent, and answer complaints promptly;
- protect TURN with credentials, and keep port 5000 and the plain-HTTP panel off the internet.
AMS can also pull remote streams and re-broadcast them. Re-streaming channels or other sites' shows without the rights is not allowed. Since 1 April 2020, art. 39d of the Swiss Copyright Act can oblige a hosting provider to stop a work from being made unlawfully available again, where it already was on the same service, the provider was notified, and the service creates a particular risk of infringement. A DMCA notice has no direct legal effect in Switzerland. We forward complete complaints to the customer, who must remove the content or justify it, and we act on a decision of a competent Swiss authority or where content is manifestly unlawful, following the Swico Code of Conduct Hosting 2025.
On jurisdiction: the revised Federal Act on Data Protection has applied since 1 September 2023, and on 15 January 2024 the European Commission confirmed Switzerland's adequacy decision, so account data and logs of EU viewers can be processed in ALP1 without additional safeguards. As of 31 October 2026 the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia, none with Switzerland. That covers the server; a US payment processor or US CDN elsewhere in your stack remains under US law. The longer version is on our Swiss offshore hosting page.
The service is operated by Hosta AG, société anonyme suisse, IDE CHE-107.875.655, Käppeligasse 1, 4125 Riehen, Switzerland. To reach us, open a support ticket from the client panel.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardRecommendedSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| SummitDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Summit |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions people ask first.
Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.
Is the Community Edition enough for a cam site?
For testing, and for RTMP-to-HLS broadcasting, yes. A cam room lives on interaction, though, and Community Edition playback runs over HLS with 8–12 seconds of delay. Sub-second WebRTC playback to many viewers is an Enterprise feature, licensed per server from Ant Media.
How many viewers will Cloud VPS Standard carry?
Bandwidth sets the ceiling first: a 1 Gbit/s port carries at most about 400 viewers at 2.5 Mbit/s (theoretical). Past a few hundred concurrent viewers, a dedicated server or several AMS nodes is the realistic answer.
Can I use Ant Media's install script directly on Debian 13?
Debian is not among the distributions Ant Media lists for its installer, which is why we deploy through Docker on an Ubuntu 24.04 base image. A native install may run, but when an upgrade breaks you will be debugging an untested combination alone.
Do I need a TURN server?
Not for most viewers. Ant Media states that AMS works without TURN even behind symmetric NAT; TURN becomes necessary when a viewer's network blocks UDP. If you add one, give it credentials and, ideally, its own IPv4 so it can listen on TCP 443.
Can I put Cloudflare in front of Ant Media Server?
In front of the website and the panel, yes. WebRTC media is UDP from the origin and never passes through Cloudflare's CDN, and on Free, Pro and Business plans Cloudflare's terms require its paid video products for serving video, which rules out pushing HLS segments through the regular CDN.
Do I need to send ID to order?
No. Ordering is no-KYC: an email address is enough, and payment in crypto is accepted. Your obligations as a content operator, listed above, apply regardless of how you paid.
Sources
Every fact on this page, with its source
Accessed 2 Nov 2026 unless noted.
Swiss law and authorities
- Pornography offences (under-16 access; material with minors, animals or violence)Swiss Criminal Code, art. 197, Fedlex
- Hosting-provider stay-down duty, art. 39d CopA, in force since 1 Apr 2020Fedlex, LDA · verified 31 Oct 2026
- Revised FADP in force since 1 Sep 2023Fedlex, RS 235.1
EU and other countries
- EU adequacy for Switzerland confirmed on 15 Jan 2024European Commission, adequacy decisions
- CLOUD Act executive agreements only with the UK and AustraliaUS DOJ, CLOUD Act resources · verified 31 Oct 2026
Industry, providers and software
- Ant Media Server 3.1.0 release (31 Aug 2026; Java 21, Ubuntu 26.04 installer support, CVE fixes)GitHub release notes
- Official compose file (network_mode: host) and Dockerfile (ubuntu:24.04 base, -j heap option, 75 % CPU and memory guards)docker-compose.yml
- Video through Cloudflare's CDN on Free/Pro/Business plans requires paid servicescloudflare.com
- Swico Code of Conduct Hosting, updated version published March 2025Swico, codes of conduct
Other references
- Supported operating systems, 4 vCPU / 8 GB floor, server ports, HTTPS needed for browser camera accessAnt Media docs 3.1, Install on Linux
- Docker and Docker Compose deploymentInstall with Docker
- Community vs Enterprise latency (8–12 s vs 0.5 s) and per-server licensingantmedia.io
- TURN not required behind symmetric NAT, coturn ports and relay rangedocs.antmedia.io
- Ant Media's origins as a small team in AnkaraAnt Media leadership page
- xCams using AMS Community Edition by default, Enterprise upgrade without code changeadentio.atlassian.net
ALP1·Swiss Alps
Your server in the Alps, ready when you are.
Cloud VPS start at $6.99 a month and are usually set up within minutes of your order.
