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.
On this page
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.

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.
| Setting | RTMP | RTMPS |
|---|---|---|
| Default port | 1935 | 443 |
| Encryption | None | TLS, from your sender to the ingest server |
| When to use | When 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.
| Platform | Where the URL and key are | Key and limits |
|---|---|---|
| Live Producer at facebook.com/live/producer: select Set up live video, then Streaming software as the video source | A 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. | |
| instagram.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. | |
| Live Studio: Manage stream, Prepare to go live, Stream settings, then Get URL | Available 1 hour before the event, or 2 hours for verified Pages. LinkedIn Live has access criteria. | |
| X | Live Studio, studio.x.com/live: select or create a Source with a name and a region | You can reuse a source, for one livestream at a time. RTMP authentication is not supported. |
| YouTube | YouTube Studio: Create, Go live, then the Stream tab | Your key loads again for the next stream. Reset it if it leaks. |
| Twitch | Creator Dashboard: Settings, then Stream | Most encoders pick the Twitch server for you. |
| Kick | Creator Dashboard: select Stream URL & Key in the sidebar | The server URL is the same for every channel. Only the key is your own. |
| Your own server | The address in your server settings, for example nginx-rtmp or MediaMTX | A 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.
Open the stream settings
In OBS Studio, select Settings, then Stream.
Choose Custom
Set Service to Custom...
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.
Start streaming
Select Apply, then OK, then Start Streaming. Then check that the destination receives your stream.

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.
- In your loop, open the General tab, and select Connect a destination. If the loop has one already, select Add destination.
- Select Connect new destination, then Custom RTMP. LinkedIn and X have their own presets.
- Paste the server URL into RTMP URL and the key into Stream key. Then select Save destination.
- 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.


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
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.
| Method | Upload | Cost |
|---|---|---|
| OBS alone | One copy, one destination | Free |
| OBS multiple output plugin | One copy per destination | Free |
| nginx-rtmp | One copy | Your server |
| Streamloop Live Scene | One copy | Billed by the minute, only while live |

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 see | Likely cause | Fix |
|---|---|---|
| The platform says offline, or Waiting for stream | The server URL or the key was copied wrong | Copy both values again, with no spaces at the start or end |
| The key is rejected | The key was for one broadcast only, as on Instagram or with a standard Facebook key | Get a new key for this broadcast |
| The connection fails at once | The protocol or the port differs from what the platform shows | Copy the URL again with its rtmp:// or rtmps:// and its port |
| The server refuses the stream name | The key is at the end of the URL and also in the key field | Split the address at the last slash |
| The server address cannot be found, or is private | A typo in the host name, or a home or office network address | Correct the host name. A cloud sender needs a public address |
| A Streamloop destination shows Off after error | The platform rejected the key, or the address cannot be found | Add the destination again with the correct values. The other destinations keep streaming |
| It connects, then the platform drops it | The server does not accept the video or audio format | Check 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