Self-Host Your Live Streams on a Budget
Skip managed CDN costs. Use a cheap dedicated server with generous bandwidth to serve HLS streams directly to your viewers. Here is what to rent, how much bandwidth you really need, a working nginx configuration, and when a managed 24/7 channel is the better deal.
Why self-hosting HLS is cheap
HLS (HTTP Live Streaming) is a playlist file plus a stream of small video segments, each a few seconds long. A player downloads the playlist, then the segments, one after another. To the server, a live stream is just static files that change every few seconds. That means you do not need a media server, a transcoding cluster or a per-minute streaming plan. You need a web server and enough bandwidth.
Managed platforms charge for the convenience of the encoding, the delivery and the per-gigabyte egress. If you do the encoding yourself, on your own computer, the only cost left is the delivery. A flat-rate server with unmetered bandwidth turns that cost into a fixed monthly bill, with no overage surprise when a stream goes well.
What you need
- A dedicated server with enough bandwidth: 100+ Mbps unmetered for a handful of viewers, 1 Gbps for larger audiences.
- A domain and an HTTPS certificate. Let's Encrypt is free. HTTPS is not optional: the uploader refuses plain HTTP destinations.
- nginx configured to accept uploads on one path and serve HLS with CORS headers on another.
- An encoder that uploads HLS. My Live TV Channel, our Mac app, captures your camera, encodes several quality levels on the Mac's hardware encoder, packages them as HLS, and uploads the segments to an HTTP PUT Server destination, which is your server.
The app pushes HLS segments to your server with HTTPS PUT. nginx serves them to viewers. That's it.
Server providers compared
We compared the most cost-effective providers for streaming workloads. Bandwidth is the biggest cost factor. Prices are entry prices from our research in 2026 and change often, so check the provider's site before you order.
Truly unmetered bandwidth
| Provider | From | Bandwidth | Port speed | Locations | Notes |
|---|---|---|---|---|---|
| Scaleway Dedibox | €4.99/mo | Unmetered | 100–500 Mbps | Paris, Amsterdam | Cheapest entry point. Pro range from €34.99 |
| OVHcloud Kimsufi | $20/mo | Unmetered | 300–500 Mbps | France, Canada, Germany, UK, US, Australia, Singapore | Best value. Anti-DDoS included |
| OVHcloud SoYouStart | $30/mo | Unmetered | 500 Mbps–2 Gbps | Same as Kimsufi | Mid-tier with more RAM and CPU |
| OneProvider | ~$15/mo | Unmetered (fair use) | 1 Gbps | 40+ locations worldwide | Reseller, widest geographic coverage |
| Psychz Networks | ~$49/mo | Unmetered | 1 Gbps | US, Europe, Asia, Africa, Australia | Good for non-European audiences |
Metered but affordable
| Provider | From | Included traffic | Overage | Locations | Notes |
|---|---|---|---|---|---|
| Hetzner Dedicated | ~€37/mo | “Unlimited” on 1G (fair use) | Warnings, then throttle | Germany, Finland | Great hardware, but not truly unmetered. Cloud plans: 20 TB, then €1.20/TB |
| Hetzner Auction | ~€25/mo | Same fair-use policy | Same | Germany, Finland | Refurbished servers, good deals if you can get one |
A note about Hetzner: their dedicated servers are marketed with "unlimited" traffic, but a fair-use policy applies. If you saturate the connection for long periods they will contact you and may throttle. Their cloud servers have a 20 TB monthly allowance with overage at €1.20/TB. Great hardware and pricing, as long as you know the limits.
How to choose
- Put the server near your viewers. A Paris server is excellent for a European audience and noticeably slower for viewers in Brazil or Japan.
- Read the port speed, not only "unmetered". Unmetered at 100 Mbps caps you at about 25 viewers at once, however many terabytes are allowed.
- CPU and RAM barely matter. Encoding happens on your Mac. nginx serving static files needs very little, so the cheapest machine is often enough.
Bandwidth: the only number that matters
The maths is short. Concurrent viewers multiplied by the bitrate they watch gives the port speed you need. Hours multiplied by that gives the monthly traffic. For a 4 Mbps stream (720p or 1080p):
| Average concurrent viewers, 24/7 | Port load | Traffic per month |
|---|---|---|
| 1 | 4 Mbps | ~1.3 TB |
| 5 | 20 Mbps | ~6.5 TB |
| 10 | 40 Mbps | ~13 TB |
| 25 | 100 Mbps | ~32 TB |
Events work the other way round. A two-hour match with 200 viewers needs 800 Mbps at its peak but only about 720 GB in total. For occasional events, port speed is the limit. For an always-on stream, the monthly traffic is. An unmetered server covers both.
Rule of thumb: a 100 Mbps unmetered server handles up to about 25 concurrent viewers at 4 Mbps. A 1 Gbps port serves about 250. For most community broadcasters, a €5–20 per month server is more than enough. Because the app encodes several renditions, viewers on phones often pick a lower one, which stretches these numbers a little.
Setup, step by step
- Rent a server from one of the providers above and point a subdomain, for example
stream.example.com, at it. - Install nginx and a certificate:
apt install nginx apache2-utils certbot python3-certbot-nginx, then runcertbot --nginx -d stream.example.com. - Create the upload folder and a password:
mkdir -p /var/www/hls && chown www-data:www-data /var/www/hls, thenhtpasswd -c /etc/nginx/.htpasswd yourname. - Add the site configuration below to
/etc/nginx/sites-available/hls-upload, link it intosites-enabled, and runnginx -t && systemctl reload nginx. - In My Live TV Channel, add a destination of type HTTP PUT Server. Set the base upload URL to
https://stream.example.com/upload/, turn on Basic Authentication with your user name and password, and set the public playback URL tohttps://stream.example.com/live/. Use the connection test before you save: it uploads a small file and measures your upload speed. - Go live. The app pushes segments as it encodes, and nginx serves them to anyone with the playback link, in Safari, in an HLS player on your website, or on a smart TV.
This is the minimal configuration that the app's own setup guide uses: one password-protected path that accepts uploads, and one public path that serves them.
server {
listen 443 ssl;
server_name stream.example.com;
ssl_certificate /etc/letsencrypt/live/stream.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/stream.example.com/privkey.pem;
# Upload endpoint (PUT with basic auth)
location /upload/ {
auth_basic "Stream Upload";
auth_basic_user_file /etc/nginx/.htpasswd;
dav_methods PUT DELETE;
create_full_put_path on;
dav_access user:rw group:r all:r;
client_max_body_size 20m;
root /var/www/hls;
}
# Public playback (no auth)
location /live/ {
alias /var/www/hls/upload/;
types {
application/vnd.apple.mpegurl m3u8;
video/mp4 mp4;
video/iso.segment m4s;
}
add_header Cache-Control "no-cache, no-store";
add_header Access-Control-Allow-Origin *;
}
}
Five things to get right
- Keep uploads behind a password. Anyone who can PUT to your server can replace your stream. Use a long password and never share the upload URL.
- Send CORS headers on playback. A web player on another domain needs
Access-Control-Allow-Origin, or the browser blocks the stream. - Watch the disk. Segments add up quickly. A daily cron job that deletes old segment files is a cheap safety net.
- Add rate limiting. nginx's
limit_reqon the public path stops one scraper from eating the port that your real viewers share. - Scale out, not up. When one server is not enough, add a second in another region and use DNS-based load balancing. Start with one server and grow with your audience.
Where a 24/7 channel fits
Self-hosting is ideal for live moments: a match, a service, a talk, a launch. It does nothing for the other 23 hours of the day, when the server sits idle and the link shows an empty player. A linear channel fills those hours.
- A managed channel. Launch a channel with your videos or a YouTube or Vimeo channel and it plays a schedule around the clock at
yourname.my-tv-channel.comand in the viewer apps on iPhone, iPad, Mac, Apple TV, Android, Fire TV and Roku. It needs at least four videos and 15 minutes of content, and runs on a weekly plan that you start in the app, from $0.99 per week for Starter. - Live on top of the schedule. My Live TV Channel also has a My TV Channel destination. Go live, and your broadcast replaces regular programming. Stop, and the schedule resumes.
- Your host, our schedule. If your site runs on WordPress, the free WordPress plugin runs a 24/7 channel where your host stores and serves the video files and My TV Channel builds the schedule and the playlist. The free tier covers one channel and up to five concurrent viewers.
Fill the hours between your live streams
Turn your videos into a channel that plays all day, then go live on it from your Mac whenever you have something to show.
FAQ
Do I need a streaming server such as Wowza or an RTMP server?
No. HLS is a playlist plus small video files delivered over plain HTTP. If the encoder writes those files to your server, any web server can deliver them. My Live TV Channel encodes and packages on the Mac and uploads the files with HTTPS PUT, so nginx only has to accept the upload and serve static files.
How many viewers can a cheap server handle?
Divide the port speed by the stream bitrate and keep a margin. A 100 Mbps port serves about 20 to 25 concurrent viewers of a 4 Mbps stream. A 1 Gbps port serves about 200 to 250. Viewers on a phone often pick a lower rendition, which stretches the number a little.
How much bandwidth does a 24/7 stream use?
One viewer watching a 4 Mbps stream around the clock uses about 1.3 TB per month. Multiply by the average number of concurrent viewers. Ten viewers on average is about 13 TB per month, which is why unmetered servers are the safe choice for always-on streams.
Can the videos of my 24/7 channel be served from my own hosting?
Yes, through the free WordPress plugin. My TV Channel builds the schedule and the playlist, and your host stores and serves the video files, so it costs less. The free tier covers one channel and up to five concurrent viewers. Without WordPress, the videos are stored and served by My TV Channel.
Can I send a self-hosted live stream into my 24/7 channel?
My Live TV Channel can publish to your own server and to your My TV Channel channel. When you go live on the channel, the broadcast replaces regular programming, and the schedule resumes when you stop.