October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
DocumentaryTube
live streaming

What Is an RTMP Server and How Do You Set One Up?

An RTMP server receives and routes an encoder's live stream. Here is a local Docker setup, OBS configuration, RTMPS guidance, and the limits of the example.

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

An RTMP server receives a live stream sent by an encoder such as OBS. It can then make the stream available to viewers, forward it to another destination, record it, or convert it to another protocol. To test one locally, run a server that listens for RTMP and point OBS at its address and stream path. A small Docker example is useful for a proof of concept, but it is not a secure or capacity-tested public deployment.

What an RTMP server does

RTMP stands for Real-Time Messaging Protocol. In a typical live-stream workflow, an encoder captures or plays media and publishes it to a server. The server accepts that incoming stream—often called ingest—and may route, relay, record, or convert it for another destination.

That makes the server a receiving and routing component, not necessarily the service that delivers video to every viewer. A server can accept RTMP ingest while using a different protocol for playback. MediaMTX, for example, documents publishing, reading, proxying, recording, playback, and protocol conversion as server capabilities.

Ingest is not the same as viewer delivery

RTMP is commonly useful between an encoder and a media server or platform. Viewer delivery is a separate design decision: consider the viewers’ devices and network, any CDN involved, the latency you need, and whether the incoming stream must be transcoded or repackaged. SRS describes HLS as broadly supported but with several seconds of latency, and WebRTC, HTTP-FLV, and HTTP-TS as possible lower-latency delivery choices. Those are the SRS project’s qualitative descriptions, not universal benchmark results.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

What you need before setting one up

  • A computer or host on which the media server can run. For remote publishers, it must be reachable over the network.
  • An RTMP server implementation. MediaMTX documents a range of protocol and routing features; SRS provides a concise Docker-based RTMP example.
  • An encoder or publisher, such as OBS, configured with the server address and the path or key the server expects.
  • A plan for access: decide who may publish, who may read, whether streams will be forwarded, and which network ports need to be reachable.

The sample below is a local starting point based on SRS LTS v6 documentation. It is not a production hardening guide or a performance comparison with other servers.

Start a minimal RTMP server with Docker

  1. Run the SRS example

    With Docker installed, run the documented command in a terminal:

    docker run --rm -it -p 1935:1935 ossrs/srs:5 
      ./objs/srs -c conf/rtmp.conf

    This publishes container port 1935 on the host and starts SRS with its RTMP configuration. Keep the terminal open while testing; the container is running in the foreground and uses --rm, so it is removed when it exits.

    Rank #2
    Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
    • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
    • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
    • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
    • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
    • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
  2. Publish a test stream

    The SRS example uses the URL rtmp://localhost/live/livestream for an FFmpeg publisher. Here, rtmp:// is the protocol scheme, localhost is the host, and /live/livestream is the application/path portion used by that example. A server may instead require a separate stream key or use a different path arrangement.

    What’s actually slowing this PC down?

    Pick the symptom - the matching free tool is one click away.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  3. Check local versus remote addressing

    localhost means the machine running the publisher, not the server in every situation. It works when publisher and server are on the same machine. A publisher on another machine needs the server’s reachable host address and a network/firewall configuration that permits the connection. The Docker example alone does not make a server safely or reliably available on the public internet.

Connect OBS to the server

  1. Open OBS stream settings

    In OBS, open Settings, then Stream. Select the custom service option so you can enter the server address rather than choosing a platform preset.

    Rank #3
    Sale
    Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
    • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
    • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
    • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
    • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
    • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
  2. Enter the address and path

    For the documented MediaMTX local example, enter rtmp://localhost/mystream as the server address and leave the separate stream-key field empty. In that example, the stream is available at /mystream. This arrangement is specific to the example; another server may expect an application path and a distinct key.

  3. Start streaming and verify reception

    Start the server first, then click Start Streaming in OBS. Confirm that the server reports or exposes the incoming stream using the method provided by that server. If OBS cannot connect, check that its server URL and path match the server configuration, that the server is running, and that the address is reachable from the OBS machine.

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

A stream URL generally combines a scheme (rtmp:// or rtmps://), a host and optional port, and an application/path that may include or accompany a stream key. Do not assume one product’s path syntax applies to another.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2Ă— USB C male to USB A female adapters and 2Ă— USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

When RTMPS matters

RTMPS is the encrypted form of an RTMP connection. YouTube describes it as a secure extension of RTMP; use it when the receiving service and your encoder/server configuration support it and you want the connection encrypted in transit. RTMPS protects the connection, but it does not by itself decide who is authorized to publish or watch.

MediaMTX’s OBS guidance gives rtmps://localhost:1936/mystream as an example and says encryption must be enabled in the server configuration. For that documented OBS arrangement, the server needs a publicly trusted TLS certificate. OBS may silently reject a self-signed certificate unless you configure and validate a locally trusted certificate authority on the OBS computer. Exact configuration options can vary by software version, so check the current server and OBS documentation before exposing an encrypted endpoint.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Plan public access and delivery separately

Control publishing and reading

Before making a server reachable outside your local machine, decide which clients may publish and which viewers may read. MediaMTX documents internal, HTTP, and JWT authentication options, as well as stream forwarding. Choose controls that fit your deployment; the local Docker command above does not establish a particular firewall policy, authentication setup, or production security posture.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
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.

Choose a delivery protocol for the audience

Compare options against actual needs: encoder compatibility for ingest, viewer and CDN support for playback, acceptable end-to-end latency, the need for transcoding or repackaging, and the complexity of exposing the server. SRS characterizes RTMP as a contribution protocol, HLS as widely supported with several seconds of latency, and WebRTC/HTTP-FLV/HTTP-TS as potential lower-latency routes. Media server capabilities differ, and the cited project documentation does not provide a fair performance benchmark between products.

Common setup problems and fixes

  • OBS cannot connect: Confirm the server is running, the host and port are correct, and the path/key format matches that server’s configuration. For remote publishing, verify network reachability rather than using localhost from the remote machine.
  • The server starts but receives no stream: Start publishing from OBS or another encoder, then inspect the server’s logs or stream status. A listening server does not create a stream until a publisher connects.
  • OBS reports an RTMPS certificate problem or silently fails: Check that encryption is enabled server-side, the certificate is valid for the host being used, and the client trusts its certificate authority. The MediaMTX guidance warns that OBS does not accept a self-signed certificate in its documented configuration without local trust setup.
  • The stream works locally but not from another network: Replace localhost with the server’s reachable address and review host/network access rules. The example command maps port 1935, but it does not configure a safe public deployment.
  • Viewers cannot play the stream even though ingest works: Check whether the server offers a viewer-facing output and whether the chosen playback protocol is supported by those viewers. Successful RTMP ingest alone does not guarantee that every viewer can consume RTMP directly.

Or let it run in the cloud

If your goal is to keep a YouTube channel live with uploaded videos rather than operate an RTMP server, StreamNeo is a different, managed approach: upload a recording or build a playlist, add your YouTube stream key once, and go live. It loops uploaded videos from the cloud, so nothing has to stay on at home. Each slot streams the upload as made, up to 4K 60fps, at one price per slot; it can automatically recover if YouTube drops the stream. The first day is free with no card, one free day per account. The monthly price is $9.99 per month. StreamNeo is for YouTube streams of uploaded videos, not camera-based live capture or a general-purpose RTMP server. Start the free day.

Frequently Asked Questions

Does an RTMP server create or record video by itself?

No. A publisher must send it a stream; recording is an additional server capability that must be supported and configured.

Can viewers always watch an RTMP stream directly?

No. The server may need to provide or convert the ingest into a playback protocol compatible with the audience.

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

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
PC Slower Than It Used to Be?Free scan - under a minute
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.