gpac / node-gpac-dash

NodeJS module for DASH streaming using GPAC
GNU Affero General Public License v3.0
125 stars 31 forks source link

Using web-server outside the localhost #6

Closed Svyatk0 closed 8 years ago

Svyatk0 commented 8 years ago

hi guys.

I am a bit new to the whole node thing, and I cant seem to understand what is missing to enable this server to work outside the localhost.

if I do the _curl http://127.0.0.1:8000/output/dashcast.mpd _ locally, it works fine. trying the same from another machine on a local network, I get "Connection refused". on the playback machine I am obviously calling the IP of the node web server, not locahost.

any pointers would be appreciated.

Thanks

Svyatk0 commented 8 years ago

figured replace http.createServer(onRequest).listen(port, ipaddr); line with http.createServer(onRequest).listen(parseInt(port, 10));

svyatko

cconcolato commented 8 years ago

Thank you for the report. Your issue could have been solved also by providing the IP address of your server using "-ip" when starting the server, instead of relying on the default value of 127.0.0.1. However, I think setting the server to accept connections on all IP addresses as you did is good. We'll fix that in the code.