change port use

84 views
Skip to first unread message

Dennis Dixon

unread,
Feb 25, 2015, 7:44:55 PM2/25/15
to eas...@googlegroups.com
Set up easyrtc on aws, ubuntu instance, apache server. Easyrtc turns on/off fine, "netstat -tan" and http://www.t1shopper.com/tools/port-scan/ say port 8080 listening.

My browser won't connect with
ec2-52-10-21-19.us-west-2.compute.amazonaws.com:8080/myeasy/static/index.html ,
 but can access the html with
ec2-52-10-21-19.us-west-2.compute.amazonaws.com/myeasy/static/index.html

I am guessing that it is because my laptop is working behind a link-sys router and won't let me use that port.

To test another port exactly which files do I need to change?

I found this document, but it's not obvious where I'm supposed to insert the "easyrtc.setSocketUrl(":8080");" line, and if that's all I'm supposed to do. Plus, what would be a good port to try? Can I use port 80?
http://easyrtc.com/docs/guides/easyrtc_with_other_servers.php

Thanks for any help.

Eric Davies

unread,
Feb 25, 2015, 10:31:46 PM2/25/15
to eas...@googlegroups.com
First note: you can't run apache on the same port as you run the easyrtc server.

If you want to change the port that easyrtc runs on, edit the server.js file. You'll find the number "8080" and comments to that effect. If you set it to port 80, make sure you kill off apache before you run node.js.

RAHANET

unread,
Feb 26, 2015, 6:01:30 AM2/26/15
to eas...@googlegroups.com
In server.js

// Start Express http server on port 8080
var webServer = http.createServer(httpApp).listen(8080);

change this to

// Start Express http server on port 8192
var webServer = http.createServer(httpApp).listen(8192);

for example.


Reply all
Reply to author
Forward
0 new messages