Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
DocumentaryTube
Linux

How to Set Up an RTMP Server on Windows, Linux, or Mac

Install MediaMTX on Windows, Linux, or macOS and test an RTMP stream from OBS, with Docker, NGINX, remote access, and security considerations explained.

By DocumentaryTube Team 5 min read
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a straightforward RTMP server on Windows, Linux, or macOS, use MediaMTX: download the release for your operating system and CPU architecture, extract it, and run it. Then point OBS at rtmp://localhost/mystream to test a local stream. If you need a containerized deployment, MediaMTX also documents a Docker setup; NGINX with an RTMP module is another option for an NGINX-based stack.

Choose an RTMP server for your setup

MediaMTX is the simplest shared route across the three desktop platforms in this guide. Its documentation describes it as a portable, dependency-free executable compatible with Linux, Windows, and macOS, with RTMP among its supported protocols. See the MediaMTX introduction and installation guide for current downloads and instructions.

Option Platforms and deployment Best fit
MediaMTX standalone Documented for Linux, Windows, and macOS; run the extracted executable. A local test or a simple server process.
MediaMTX Docker Documented container deployment; the example maps RTMP on TCP port 1935 and includes ports for other protocols. A container-based or more managed deployment. MediaMTX recommends Docker for production environments.
NGINX RTMP module NGINX documentation surfaced for this guide covers the NGINX Plus RTMP dynamic module. Teams that specifically want an NGINX-based stack. The available documentation does not establish a performance or latency advantage over MediaMTX.

The standalone MediaMTX setup below is enough to receive a stream from OBS on the same computer. You do not need paid hosting for a local test.

Install and run MediaMTX without Docker

  1. Open the official MediaMTX installation page and choose the release artifact matching your operating system and CPU architecture. Release names and available builds can change, so use the current page rather than an old download link.
  2. Extract the downloaded archive. Keep the included configuration file with the executable if you plan to adjust settings later; for a first local test, leave the default configuration in place.
  3. Start the server. On Windows, double-click mediamtx.exe. On Linux or macOS, open a terminal in the extracted directory and run ./mediamtx.
  4. Leave the server process running while you test. Its default configuration is intended to get you started; consult the current configuration file and documentation before changing listener ports or other settings.

MediaMTX’s Docker example maps TCP port 1935 for RTMP and also exposes ports used by its other supported protocols. If you use Docker, expose only the protocol ports you need and follow the current official Docker instructions for the exact command and options. The example’s environment variables include settings for particular transports and WebRTC address handling; they are not all necessary for an RTMP-only test.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
LAPGEAR Home Office Pro Lap Desk - Black Carbon, Fits 15.6” Laptops
  • Spacious Design: Measuring 21.1" wide and 14.1" deep, our lap desk comfortably fits most laptops up to 15.6". Extra room for accessories ensures convenience.
  • Enhanced Functionality: Packed with handy features, including a 5x9" precision tracking mouse pad and a built-in phone slot for seamless work or video calls. Plus, enjoy ergonomic support with the integrated cushioned wrist rest.
  • Cool Comfort: Enjoy a stable surface with our lap desk's dual bolster cushion, designed for comfort and airflow, keeping your lap cool during extended use.
  • Durable Surface: Work with confidence on our lap desk's solid surface, featuring a sleek black carbon color, ensuring optimal air circulation to prevent your laptop from overheating.
  • On-the-Go Convenience: With an integrated handle and lightweight design (2.8 lbs), our lap desk is portable for travel or moving around the house, offering flexibility in any space.

Publish a test stream from OBS

Once MediaMTX is running, use OBS Studio to publish to its local RTMP listener. The OBS labels below follow MediaMTX’s documented workflow; menu wording may vary between OBS versions.

  1. In OBS, open Settings → Stream.
  2. Set the service to Custom….
  3. Enter rtmp://localhost/mystream in the Server field.
  4. Leave the Stream key field empty, then save the settings.
  5. Select Start Streaming in OBS. MediaMTX makes the published stream available at the path /mystream.

These steps are for a client publishing from the same computer as the server. For a device elsewhere on your local network, replace localhost with the server computer’s reachable LAN address; that address must be reachable from the client. See MediaMTX’s OBS publishing instructions.

Rank #2
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Deploy in Docker or use an NGINX-based stack

When Docker makes sense

Choose Docker if you want the server isolated in a container or are preparing a more managed deployment. MediaMTX documents this route and recommends it for production environments. Its example includes mappings for several protocols, but an RTMP-only use case needs the RTMP port mapping, not every port in the example. Use the current installation documentation to check the command, image details, and any options relevant to your chosen transports.

When to choose NGINX RTMP

NGINX is a reasonable alternative if your existing setup specifically depends on NGINX. The current NGINX reference identified here documents the RTMP dynamic module for NGINX Plus; it should not be treated as a general, current installer guide for every NGINX edition or operating system. An older OBS community guide also describes an NGINX RTMP setup, but its platform-install references are dated. Start with the NGINX RTMP module documentation for the supported NGINX Plus path.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Yilador Webcam Cover 3 Pack, 0.03 inch Ultra Thin Laptop Camera Cover Slide
  • Note: Not suitable for MacBooks released after 2023 or devices with a protruding front camera; Not applicable to full-screen or notch-style tempered glass screen protectors; Do not use on the rear camera of the phone.
  • đź’» Why Do You Need a Webcam Cover Slide? — Safeguard your privacy by covering your webcam with our reliable webcam cover when not in use. Don't let anyone secretly watch you. Stay protected!
  • âś… Thin & Stylish — Enhance your laptop's functionality and aesthetics with our 0.027" ultra-thin webcam covers. Seamlessly close your laptop while adding a touch of sophistication.
  • âś… Fits Most Devices — Compatible with laptops, phones, tablets, desktops! Keep your privacy intact on Ap/ple, Mac/Book, iPh/one, iP/ad, H/P, L/novo, De/ll, Ac/er, As/us, Sa/msung devices.
  • âś… 365 Days Protection — Our upgraded 3.0 adhesive ensures a strong hold that won't damage your equipment. Experience reliable, long-term privacy protection day in and day out.

The available documentation does not provide a controlled comparison of MediaMTX and NGINX performance or latency, so choose based on deployment fit rather than an assumed speed advantage.

Secure access beyond the local computer

A server used only by OBS on the same machine has a smaller exposure than one reachable by other devices or by the public internet. Before allowing remote clients, deliberately configure the host firewall and any router or cloud firewall, limit permitted source addresses where practical, and do not publish credentials. These are deployment precautions, not a universal firewall recipe.

Rank #4
AboveTEK Portable Laptop Lap Desk w/Retractable Left/Right Mouse Pad Tray, Non-Slip Heat Shield Tablet Notebook Computer Stand Table w/Sturdy Stable Work Surface for Bed Sofa Couch or Travel
  • Anti-Slip Surface - Transform your laptop into a mobile workstation with the AboveTEK portable laptop lap desk. The anti-slip surface provides a strong grip for laptops up to 15.6 inches(Diagonal), while the double rubber strip on the bottom ensures a stable display or typing experience on your lap, couch, or bed.
  • Retractable Mouse Pad - Retractable laptop mouse pad extends on both directions for the left/right handed with elevation along the edges for stopping mouse from falling off. The size of laptop tray is 14" X 9.7" and the size of mouse pad is 7.4" X 6.1".
  • Effective Heat Shield - The effective heat shield made of sturdy and thick material protects your laptop from overheating. Prioritizes your comfort and safety, an ideal lap pad or board for working anywhere.
  • EASY to Carry and Store - With an ergonomic and simplistic design, the lap desk is portable to store in a backpack. Only 15" in size, 2.2 lb of weight and with slim 0.6 inch thickness, it is ready to be easily carried around.
  • Widely Applicable - The smooth platform accommodates laptops and tablets up to 15.6 inches(Diagonal), making it a versatile accessory and one of the best gifts for mom, dad, students and professionals. Perfect for use as a laptop bed tray or tablet holder anywhere at home, library, or park.

RTMPS encryption

MediaMTX documents RTMPS configuration using a TLS certificate and key. If you enable encrypted RTMP, configure those credentials according to the current RTMP feature documentation. That page notes that most major players do not support RTMPS, so verify that your intended publisher and reader support it before relying on it.

Authentication

MediaMTX documents RTMP authentication using username and password query parameters, as well as token query parameters. Check its authentication documentation for the current syntax. Treat any credential-bearing URL as a secret: avoid sharing it in public chat, screenshots, or logs accessible to others.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Sale
LAPGEAR Home Office Lap Desk – Pink, Fits 15.6” Laptops
  • Spacious Design: Measuring 21.1" wide and 12" deep, our lap desk comfortably fits most laptops up to 15.6". Extra room for accessories ensures convenience.
  • Enhanced Functionality: Packed with handy features, including a 5x9" precision tracking mouse pad and a built-in phone slot for seamless work or video calls. Plus, enjoy laptop support with the integrated device ledge.
  • Cool Comfort: Enjoy a stable surface with our lap desk's dual bolster cushion, designed for comfort and airflow, keeping your lap cool during extended use.
  • Durable Surface: Work with confidence on our lap desk's solid surface, featuring a blush pink color, ensuring optimal air circulation to prevent your laptop from overheating.
  • On-the-Go Convenience: With an integrated handle and lightweight design (2.14 lbs), our lap desk is portable for travel or moving around the house, offering flexibility in any space.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot a failed local test

  • The server will not start: confirm that you downloaded the artifact for the correct operating system and CPU architecture, extracted it, and launched the executable for that platform. Check the terminal or process output for the specific error.
  • OBS cannot connect: make sure MediaMTX is still running, the OBS server field is exactly rtmp://localhost/mystream for a same-computer test, and the stream key is empty as in the documented workflow.
  • A second device cannot publish: localhost refers to the device running OBS, not the server on another computer. Use the server’s LAN-reachable address instead and verify that local network and firewall rules allow the connection.
  • The RTMP listener is unavailable: check the current MediaMTX configuration and whether another process or firewall rule is preventing access to the configured listener. Port 1935 is the RTMP mapping shown in MediaMTX’s Docker example; do not assume a changed configuration still uses it.
  • RTMPS clients fail while plain RTMP works: verify the TLS certificate and key configuration, then check whether the client supports RTMPS. MediaMTX’s RTMP documentation warns that most major players do not.

Or let it run in the cloud

A local RTMP server is for receiving or relaying a live feed from OBS or another RTMP client. If your goal is instead to keep uploaded videos running as a 24/7 YouTube live stream, StreamNeo is a different, cloud-based option: upload a recording or build a playlist, add your YouTube stream key, and go live. It plays uploaded videos, not a live camera feed, and it streams to YouTube only.

  • Your computer and home connection do not have to stay on.
  • Each slot streams your upload as made, up to 4K 60fps, at one price per slot rather than quality tiers.
  • It automatically recovers if YouTube drops the stream.
  • The first day is free with no card, one free day per account.

Monthly: $9.99 per month. See StreamNeo for details, then start your free first day.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Screening Room

Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.