MonaServer – Setup and configuration
MonaServer is a pretty lightweight Streaming Server that supports RTMFP, RTMP, RTMPE, HTTP (with JSON-RPC and XML-RPC) and Websocket. Thanks to the RTMP support you can use with software like OBS, XSplit or even Wirecast, VMix and such.
On Windows you have the option to build MonaServer yourself following the instructions on this page. Or you can grab the package from Sourceforge. You can also build it on Linux, Mac OS, Amazon or armv61 (Raspberry). You will then get a MonaServer.exe (on Windows) and the lua DLL file. You can now create a monaserver.ini or just start MonaServer through the Executable file which will start it with its default configuration:
On Linux you would build it following the same instructions and then start it through ./MonaServer. As you can see, the RTMFP, RTMP and HTTP “protocols” are active and listening on the default ports. Now it of course varies from person to person which protocols you want to use. Which brings us back to the configuration file. Thanks to its lightweight the configuration is pretty easy as well, let us take a look at the example configuration:
;MonaServer.ini [RTMP] port = 2000 [logs] name=log directory=C:/MonaServer/logs
This would change the listening port for your RTMP server to 2000 and save the logs under “C:/MonaServer/logs”. You can find more configuration options on the samples page. In your streaming software you would setup a stream with the following configuration then:
Streaming Service: Custom
Server: rtmp://<your server ip>:2000
Play Path/Stream Key: test (or whatever you desire)
Be aware, anyone can stream to this server or receive a stream from it, unless you secure it with a firewall. For example using VLC Player opening a network stream with the address “rtmp://<your server ip>:2000/test”. And you can of course use it to integrate a stream from a friend or second PC in your network into your streaming software for example to do a Picture-in-Picture Stream.