Yes it is possible to run WebRTC on a localhost, and if you search the forums for “webrtc localhost”, you will find some discussion around this if those posts help you.
For a localhost, you will need to use your local IP address, this can be found with ipconfig or ifconfig command.
You will then request a certificate with this IP address.
Then in your webrtc Application.xml
You will need to enter your IP address here:
<!-- comma separated list of IP addresses and the transport information. For multiple IP's use a pipe character to separate the lists -->
Save and restart your application for changes to take effect.
I would recommend using TCP port 443 and this will be setup in the VHost.xml as shown in the StreamLock guide. If you are using your own SSL certificate: As long as the DNS the certificate belongs to can respond with a local IP of your server you can run webrtc on your local network.
if you need any help, please send us a a support ticket and we’ll be happy to help.