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.9k stars 1.51k forks source link

socket disconnecting with Info [rtmp disconnect] on centOS server #494

Closed Vikash-git7 closed 1 year ago

Vikash-git7 commented 2 years ago

I am trying to create a Node-media-server but after stating the server I got these success Info logs.

[INFO] Node Media Server v2.3.8 [INFO] Node Media Rtmp Server started on port: 1935 [INFO] Node Media Http Server started on port: 8000 [INFO] Node Media WebSocket Server started on port: 8000 [INFO] Node Media Trans Server started for apps: [ live ] , MediaRoot: ./media, ffmpeg version: 4.4-static

But after this, I am constantly getting an INFO log of RTMP disconnect with ID. [INFO] [rtmp disconnect] id=I5L1S965 [INFO] [rtmp disconnect] id=VQWKE9UU

After debugging I found that This is coming from - onSocketClose hook.

May I ask why these RTMP disconnect logs are printing on centos as code is working fine on the local machine? Note - Is this related to socket.remoteAddress as my centos server is returning remoteAddress as my VIP IP.

Thank you very much for your time! Appreciate

Abdullahi247 commented 1 year ago

Make sure to open ports 80 and 443 on your production server

Vikash-git7 commented 1 year ago

@Abdullahi247 Ports are open. This is not creating any problem. Application is working fine I just wanted to know why this is happening.

Abdullahi247 commented 1 year ago

Alright