WebRTC : Access server using my IP address instead of localhost

1,109 views
Skip to first unread message

Renuka V

unread,
Sep 20, 2019, 10:19:52 AM9/20/19
to discuss-webrtc
Hi,

I followed all the steps in https://codelabs.developers.google.com/codelabs/webrtc-web/  and was successful.
I want to access the server using my IP address instead of localhost.

I am getting the error   "Uncaught TypeError: Cannot read property 'getUserMedia' of undefined"  . 
When I read about it , I found that getUserMedia  ensures that the origin is secure.
How do I get over this problem ???   Kindly help

Thanks & Regards,
Renu

Ariel Dc

unread,
Apr 14, 2020, 4:44:03 AM4/14/20
to discuss-webrtc
Hi.
go to the chrome://flags/  in url input.  
find  option  'nsecure origins treated as secure' .
 add your ip or url , and enable this option.
Launch the browser again and you're done.

Sorry for my English.
Reply all
Reply to author
Forward
0 new messages