Trying to run Easy RTC demos on my localhost

578 views
Skip to first unread message

Muhammad Salman

unread,
Sep 14, 2017, 3:59:12 PM9/14/17
to EasyRTC
Hi Eric,

I have performed all pre steps successfully as follows:
  1. Install latest Node.js DONE
  2. Download the EasyRTC distribution from github (https://github.com/priologic/easyrtc.git) DONE
  3. I have Run npm install in the easyrtc directory. DONE
  4. Enter the easyrtc/server_example directory by executing cd server_example DONE
  5. Run npm install in the server_example directory.  DONE
  6. Start EasyRTC by running node server.js while in the server_example directory. DONE
  7. Browse the examples using a WebRTC enabled browser. (defaults to port 8080

For point no.7 I tried to open demos but could not get result (Nothing happened when clicked connect button). I am using Firefox and Chrome to experiment your RTC examples. I have webcam connected. My machine is on Windows 10 and localhost is on XAMPP. Is there any thing missing at my part? Can you please help in this matter. I do not have ssl certificate (I came to know that RTC examples can work on https) Can you please mention what steps should I do on my localhost to make this enable. I dont have server machine or bought SSL url.

Waiting for your reply.
Thanks and Kind Regards


Eric Davies

unread,
Sep 14, 2017, 4:21:43 PM9/14/17
to EasyRTC
Easyrtc provides it's own webserver.
If you tried to run it on a port that was already being served by XAMPP,  you should have seen some error messages to that effect and it would quit.

Solution : kill your XAMPP, start up Easyrtc again, and then try pointing your browser at localhost:8080 .
Recommend using the beta branch for now, and also reading https://easyrtc.com/docs/easyrtc_gettingStarted.php

Muhammad Salman

unread,
Sep 15, 2017, 9:24:59 AM9/15/17
to EasyRTC
Hi Eric,

Thank you so much. I stopped xampp and now its running perfect. Now how can I access the easyrtc demo over my LAN. localhost would not work. Where can I perform configuration to make it enable? Secondly, If I need to integrate a PHP form with easyrtc demo what would be the best way to do that. Since php will running over xampp server with different port no?. Would it be good idea to place php form in an iframe on easyrtc demo page? I am sorry if I am asking stupid question. I am newbie in easyrtc or webrtc domain.


Thanks again. 
Message has been deleted
Message has been deleted

Muhammad Salman

unread,
Sep 15, 2017, 10:43:35 AM9/15/17
to EasyRTC
To elaborate part of above question I need to access demo just like: mypc_ip_address:8080/demo through other pc within the same LAN. localhost:8080 can only work on single machine hosting the easyrtc demos.

I have even entered my machine lan ip address to webserbver.listen function in srever.js file and restarted node js as follows:

webServer.listen(8080,'10.0.0.
126', function () {
    console.log('listening on http://localhost:8080');
});


But page is not loading with ipaddress:8080/demo

Please guide.. :)
Thanks.

Eric Davies

unread,
Oct 4, 2017, 12:26:46 AM10/4/17
to EasyRTC
On my own local network, I ran the unmodified server_ssl.js script. That machine had been assigned an ip address of 192.168.0.28
On the same machine I was able to point a browser at https://192.168.0.28:8443
On a different machine on the same local network, I pointed a browser at https://192.168.0.28:8443
Once chrome was assured that I knew what I was doing, I was able to load the pages and establish connections.

If that procedure doesn't work for you, you probably have firewalls on those machines that are posing problems, or the router is configured to hide one machine from the other. Usually its the first case.
Reply all
Reply to author
Forward
0 new messages