Skip to content

报错"查找可用rtp端口时异常,可能已无可用端口" #110

@xsir99

Description

@xsir99

摄像头视频时常播放不了看日志经常有error提示 查找可用rtp端口时异常,可能已无可用端口
重启服务后能短暂解决,过一段时间又开始了
服务用docker 部署
不知是不是开放端口的问题?

  • 日志
2025-06-18 13:58:26,587 [53] ERROR AKStream - [AKStreamWeb]->HTTP-OUTPUT->172.19.0.1->GET->/MediaServer/StreamLive->StatusCode:200->Object reference not set to an instance of an object.->   at AKStreamWeb.Attributes.LogAttribute.OnActionExecuted(ActionExecutedContext context) in /src/AKStreamWeb/Attributes/LogAttribute.cs:line 42
2025-06-18 13:58:26,588 [53] ERROR AKStream - [AKStreamWeb]->HTTP-OUTPUT->172.19.0.1->GET->/MediaServer/StreamLive->StatusCode:400->Body: {"Code":"MediaServer_WebApiDataExcept","Message":"访问流媒体服务器WebApi接口返回数据异常","ExceptMessage":"{\"Code\":\"Sys_SocketPortForRtpExcept\",\"Message\":\"查找可用rtp端口时异常,可能已无可用端口\"}","ExceptStackTrace":""}
  • kepper 开放端口
ports:
      - 6880:6880
      - 1935:1935
      - 10000-10200:10000-10200
      - 10000-10200:10000-10200/udp
      - 8000:8000/udp
      - 9000:9000/udp
      - 6881:80

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions