illuspas / Node-Media-Server

A Node.js implementation of RTMP/HTTP-FLV/WS-FLV/HLS/DASH/MP4 Media Server
https://www.npmjs.com/package/node-media-server
MIT License
5.91k stars 1.51k forks source link

dynamic pull with 127.0.0.1 in output but not work #492

Open ivyminyang opened 2 years ago

ivyminyang commented 2 years ago

when I use dynamic pull, it automaticlly use 127.0.0.1 with ffmpeg in output address, but in my computer, 127.0.0.1 does not work, only localhost works, may I please ask is there a way to change the output host in the task config? Appreciate

ivyminyang commented 2 years ago

I found out I could write the host in the file node_rtmo_server.js, I added host with '127.0.0.1', it works, this.tcpServer.listen({port:this.port,host:'127.0.0.1'},() => { Logger.log(Node Media Rtmp Server started on port: ${this.port}); });

ivyminyang commented 2 years ago

file node_rtmp_server.js