Skip to content

Custom RTMP Streaming: Connect Any Server With a URL and a Key

Custom RTMP sends a live stream to any server that accepts RTMP or RTMPS. You need two values from the destination: a server URL and a stream key.

Use it for Instagram, LinkedIn, X, your own server or any platform that your encoder does not list. For one server, OBS alone is enough, and OBS is free.

Server URL
rtmp:// or rtmps://, a host and an app path

Example: rtmps://live.example.com:443/app

Stream key
The secret last part
Where to paste
OBS: Settings, Stream, Service Custom...
Default ports
1935 for RTMP, 443 for RTMPS

Streaming live from OBS to one server? See the OBS steps. Looping video files 24/7, such as lofi or sermon replays? Streamloop, a cloud tool for 24/7 loops, can send them to any public RTMP server. One live feed to several servers? Use a relay. Stream does not connect? See the fixes.

Updated Checked against platform help pages and the Streamloop dashboard

What are the server URL and stream key in a custom RTMP address?

The server URL says where the stream goes. The stream key says which channel or broadcast it is.

Diagram of a custom RTMP address. The scheme, host, port and app path form the public server URL. The secret stream key follows after a slash.

The stream key is secret, so treat it like a password. If a platform shows one long address that ends in the key, split it at the last slash.

Should you use RTMP or RTMPS?

RTMPS is RTMP inside an encrypted TLS connection. For how RTMP itself works, see what RTMP is and how it works.

SettingRTMPRTMPS
Default port1935443
EncryptionNoneTLS, from your sender to the ingest server
When to useWhen the destination offers only rtmp://When the destination offers it. Facebook asks for RTMPS if your software supports it. LinkedIn and X offer both.

Where does each platform show its server URL and stream key?

Copy both values exactly. Some keys work for one broadcast only.

PlatformWhere the URL and key areKey and limits
FacebookLive Producer at facebook.com/live/producer: select Set up live video, then Streaming software as the video sourceA standard key works for one broadcast. Turn on Persistent stream key to reuse it. You need an account 60 days old, and a Page or professional profile with 100 followers.
Instagraminstagram.com on a computer: Create, then Live video. Enter a title and pick an audience.The key changes each time you use Live Producer. You need a public account with 1,000 or more followers.
LinkedInLive Studio: Manage stream, Prepare to go live, Stream settings, then Get URLAvailable 1 hour before the event, or 2 hours for verified Pages. LinkedIn Live has access criteria.
XLive Studio, studio.x.com/live: select or create a Source with a name and a regionYou can reuse a source, for one livestream at a time. RTMP authentication is not supported.
YouTubeYouTube Studio: Create, Go live, then the Stream tabYour key loads again for the next stream. Reset it if it leaks.
TwitchCreator Dashboard: Settings, then StreamMost encoders pick the Twitch server for you.
KickCreator Dashboard: select Stream URL & Key in the sidebarThe server URL is the same for every channel. Only the key is your own.
Your own serverThe address in your server settings, for example nginx-rtmp or MediaMTXA cloud sender needs a public address. It cannot reach a home or office network.

Step-by-step key guides: YouTube, Twitch, Kick, Facebook and TikTok.

How do you stream from OBS to a custom RTMP server?

OBS pushes your stream to one custom RTMP server for free. Your computer stays on while you stream.

  1. Open the stream settings

    In OBS Studio, select Settings, then Stream.

  2. Choose Custom

    Set Service to Custom...

  3. Paste the two values into OBS

    Paste the server URL into Server and the key into Stream Key. Turn on Use authentication only if the server gives you a user name and a password.

  4. Start streaming

    Select Apply, then OK, then Start Streaming. Then check that the destination receives your stream.

    Diagram: OBS on your computer encodes the video and sends one RTMP or RTMPS upload to one custom RTMP server.

How do you run a 24/7 loop of video files to a custom RTMP server?

Streamloop turns prerecorded videos into a 24/7 live stream from the cloud. You need no OBS, and your computer can be off. It suits lofi, music and sermon replay channels. A 24/7 live stream stays live, so new viewers can find it at any hour.

One loop sends the same video to up to 5 destinations, and Custom RTMP covers any platform that has no preset.

Use a key that stays valid. Instagram keys change each time, a standard Facebook key works for one broadcast, and X ends a livestream after 24 hours. Facebook, Kick and TikTok also restrict looped or prerecorded live video, so check their rules in the key guides above first.

  1. In your loop, open the General tab, and select Connect a destination. If the loop has one already, select Add destination.
  2. Select Connect new destination, then Custom RTMP. LinkedIn and X have their own presets.
  3. Paste the server URL into RTMP URL and the key into Stream key. Then select Save destination.
  4. Pick a quality that every destination accepts, and start the loop. There is no test button, so check that the destination receives your stream the first time.
The Streamloop Add destination dialog. It lists the platforms that you can connect. Custom RTMP, for any platform, is the last item.
The Streamloop Connect Custom RTMP form. You type the server URL in the RTMP URL field and the key in the Stream key field.

Example values, with the key hidden.

Next: multistream a live show or a loop, or run a 24/7 stream from pre-recorded video.

Run a 24/7 loop to any RTMP server

Streaming is billed by the minute, only while live: one 24/7 stream at 1080p is about $10 per 30 days. Start with a $1 trial week, which becomes a monthly plan unless you cancel, or top up and pay as you go. See all prices

Start the $1 trial

How do you relay one live feed to several RTMP servers?

An RTMP relay is a server that receives one stream and sends a copy to each destination. You upload only one copy. To restream to a platform with no preset, add it to the relay as a Custom RTMP destination. To send one copy per destination from OBS instead, see how to multistream on OBS.

MethodUploadCost
OBS aloneOne copy, one destinationFree
OBS multiple output pluginOne copy per destinationFree
nginx-rtmpOne copyYour server
Streamloop Live SceneOne copyBilled by the minute, only while live
Diagram: OBS sends one upload to a Live Scene. The scene encodes the output again and sends it to up to 5 destinations, such as Custom RTMP.

A Streamloop Live Scene takes your live OBS feed and sends it to up to 5 destinations. It encodes the video again, up to 1080p60.

In the Live Scenes studio, add an RTMP input, and paste the server URL and key that it shows into OBS. Then add each platform as a destination, with its preset or Custom RTMP. See live input setup, then check that the destination receives your stream.

Choose Scene when you create a stream. See Live Scenes.

How do you check that the destination receives your stream?

Look at the preview on the platform.

  • Facebook: a live preview appears after your software starts streaming.
  • Instagram: Live Producer shows a preview before Go live. Practice does not start the live for anyone.
  • LinkedIn: a preview in Live Studio means the connection works. Do not select Go live during a test.
  • X: Live Studio shows Waiting for stream until video arrives. Test with a Private livestream.

Why does a custom RTMP stream not connect?

Most causes apply to any sender. One row is only about a Streamloop loop. For OBS error messages such as Failed to connect to server, see how to fix RTMP and stream key errors.

What you seeLikely causeFix
The platform says offline, or Waiting for streamThe server URL or the key was copied wrongCopy both values again, with no spaces at the start or end
The key is rejectedThe key was for one broadcast only, as on Instagram or with a standard Facebook keyGet a new key for this broadcast
The connection fails at onceThe protocol or the port differs from what the platform showsCopy the URL again with its rtmp:// or rtmps:// and its port
The server refuses the stream nameThe key is at the end of the URL and also in the key fieldSplit the address at the last slash
The server address cannot be found, or is privateA typo in the host name, or a home or office network addressCorrect the host name. A cloud sender needs a public address
A Streamloop destination shows Off after errorThe platform rejected the key, or the address cannot be foundAdd the destination again with the correct values. The other destinations keep streaming
It connects, then the platform drops itThe server does not accept the video or audio formatCheck the encoder settings of the platform. Streamloop sends H.264 video and AAC audio

Frequently asked questions

What is custom RTMP?

Custom RTMP sends a live stream to any server that accepts RTMP or RTMPS. You need two values from the destination: a server URL and a stream key. Use it when your encoder or service has no preset for the platform.

What is the difference between RTMP and RTMPS?

RTMPS is RTMP inside an encrypted TLS connection. An RTMPS address starts with rtmps:// and usually uses port 443. Plain RTMP uses port 1935 by default and has no encryption. Facebook asks you to turn on RTMPS if your software supports it.

What is an RTMP relay?

An RTMP relay is a server that receives one RTMP stream and sends a copy to each destination. You upload only one copy. Examples are a Streamloop Live Scene, or nginx-rtmp on your own server.

Can I stream to Instagram with custom RTMP?

Yes, from instagram.com on a computer: select Create, then Live video. You need a public account with 1,000 or more followers. The key changes each time, so it does not suit a 24/7 loop.

Can I stream to my own RTMP server, such as nginx-rtmp or MediaMTX?

Yes. Use the address of your server as the server URL and the stream name as the key. A cloud service needs a public address. Streamloop refuses private, loopback and local network addresses.

Can Streamloop send SRT, HLS or WHIP to a custom destination?

No. Streamloop destinations take rtmp:// and rtmps:// addresses only. SRT works as an input to Live Scenes, not as an output. For an HLS address on a website, send the loop to a media server; see how HLS works.

How do I change the stream key of a saved destination?

The Streamloop dashboard cannot edit a saved key. Stop the loop, add the destination again with the new key, and delete the old one. Then start the loop again.

Sources

Sources

Meta: Go live on Facebook using streaming software and How to go live on Facebook with streaming software

Instagram Help: Start a live video on Instagram. LinkedIn Help: Go live to your scheduled LinkedIn Live Event using a custom stream (RTMP), and LinkedIn Live Overview. X Help: Live Studio

OBS Studio: the English interface text

For the YouTube, Twitch and Kick rows, see the sources in our stream key guides for those platforms.

Questions or a correction? Contact us