Matchmaking using WebRTC (AWS Linux Server)??

Hi,

I was wondering how it would be possible to setup a AWS amazon web server to allow two remote PCs to play a multiplayer using WebRTC?

Is it possible to use WebRTC on the internet?

I found the Unity multiplayer examples do work on my local PC, but I need to be able to use multiplayer over the internet.

I can’t understand how to make outside connection? Do I add Webserver.exe to AWS server? Or do I have to write my own webserver to handle connecting clients? If I have to write my own then how? What is the protocol or how do I know how to respond to establish the connection? There is no documentation for this that I can find.

Do i try to copy from the Webserver.exe source code and make my own webserver?

Is there a webserver that already exists for Linux?

Thnanks

You can customize the webapp according to this doc.
https://docs.unity3d.com/Packages/com.unity.renderstreaming@3.1/manual/customize-webapp.html