Home Forums How to host rtmp servers: Debian based linux(ubuntu[18.04,19.10,20.04]) debian 9 etc

Viewing 1 post (of 1 total)
  • Author
  • #253
    Donald BiltonDonald Bilton

    There are many debian based linux distributions that
    this tutorial should work on. Many debian repositories have similar sources and the package managers are often the same. If you are unable to use this tutorial for a certain debian based distribution, please list the distribution and version below and help will be available asap.

    1. This tutorial is for installing rtmp servers on
    Debian based distributions. Particularly, Ubuntu is the tested platform. Auto install scripts have been wrote and are available to be observed and read at
    2. Open up a terminal emulator by pressing ctrl+alt+t or finding your distributions terminal
    Emulator by typing terminal in the gui search.(For windows 10 users, launch the little icon from app store till you are face with a command prompt 😀 )

    Ubuntu terminal

    3. At the shell prompt, copy and paste these commands. Typically, any install commands require sudo if not logged in as a root user. As most distributions have the root account disabled, we will assume sudo will be used. Please include both
    parenthesis in the code snippet

    (cd $home
    sudo apt-get update
    sudo apt-get dist-upgrade -y
    sudo apt-get install git -y
    git clone https://github.com/isodecryptor/tollstream-RTMP-server
    cd tollstream-RTMP-server
    sudo chmod +wx tollstream-RTMP-ubuntu3.sh
    sudo ./tollstream-RTMP-ubuntu3.sh) 

    Ngrok.com provides free(free works well for small scale servers) and paid accounts through Ngrok.com. Tollstream is not affiliated with Ngrok. We use Ngrok’s reverse proxy to assist people in port forwarding issues. (Behind firewalls they can’t configure,routers or other, non administrative restrictions. )

    5. Please visit https://ngrok.com if your are behind nat firewalls that you either don’t have the administration rights to configure, the know how, or the patience. You will want to register for free with ngrok.com. Ngrok also let’s you monitor your connections and blacklist ips etc and add other ips to your whitelist such as friends. The free version works for 4 connections from the outside world, and there are paid versions that have no restrictions.

    6. After registration, you will enter the authkey into the terminal to register it with the servers automated script. From that point on, ngrok will be the one giving you urls that are accessible from the internet. You will be accessible from the web from that url. The automated install script will list that url that is accessible from the internet. The automated script then takes your url and username of tollstream, encrypts it, and sends it to tollstream.com for e-commerce assistance.

    ngrok authkey

    Your authkey will be saved in your server and will only need to be entered once.

    7. Your server should be set up and the automated script should list several urls. You should make note of these urls, depending on your desired configuration. I will attempt to explain what these urls mean and how they will be used.

    A) You will receive a url that is accessible from the web if port forwarding was successful. If you port forwarded ,yourself ,and are having connection problems from the outside web, please check to see if you have configured your firewalls properly to port forward tcp 1935.

    B) You will receive a url that was issued from ngrok.com that points to your public ip address and rtmp server. This would be the same as if someone typed in your public ip and attempted to access your server, except it allows for port forwarding behind networks that are not configured for port forwarding.

    C) You will receive a url that assumes that you are running broadcasting software on the same machine as the server is located. This is the url that is considered localhost looking like rtmp://localhost:1935/(app)/(stream key)
    Or rtmp:// key)

    D) you will receive a url that includes your private ip address of your server so that other devices such as cameras, sell phones, or other networked devices can send their information to the server from within you own network. This means devices that are connected to the same router but have been issued separate private ip. (Every device connected to the same router has a separate private ip and, typically, share the same public ip that is issued by your internet service provider.

    Example. I have tollstream rtmp server set up on my laptop but I want to use my cell phone that is on the same wifi to send live video to my server.

    8. After running this script, it will update, fetch and install all rtmp dependencies using nginx as the web server. The auto install script will help to install and configure an rtmp server, specifically for use with tollstream.com

    5. Stay tuned for more site progress as it is still under construction. Once all modules are completed, more os support will be available. Happy streaming..

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.