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.
https://www.wowza.com/docs/how-to-get-ssl-certificates-from-the-streamlock-service
Then in your webrtc Application.xml
[install-dir]/conf/webrtc
You will need to enter your IP address here:
Property>
<!-- comma separated list of IP addresses and the transport information. For multiple IP's use a pipe character to separate the lists -->
<Name>webrtcIceCandidateIpAddresses</Name>
<Value>[wowza-streaming-engine-internal-ip-address],udp</Value>
<Type>String</Type>
</Property>
<Property>
<Name>webrtcUDPBindAddress</Name>
<Value>0.0.0.0</Value>
<Type>String</Type>
</Property>
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.