Heroku 上的 UDP 服务器

UDP server on Heroku

我正在尝试使用 Web 进程将 UDP 服务器部署到 Heroku,但它抱怨说我从未绑定到端口:

Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch

我查看了 Heroku 的文档,但找不到任何提及 UDP 的内容。我确实发现它提到 Web 进程是唯一允许外部 HTTP 请求的进程。

是否有任何进程类型允许我接受 UDP?

我也看到了下面的问题,但是现在已经 6 年了,所以我要发布一个新问题。

Java TCP/UDP Server & Client on Heroku

我认为 here 提供的答案仍然正确:

The Heroku Router only routes new requests to apps on the common runtime to ports 80 and 443. Your app can create new outbound requests on any port, but an external visitor/user cannot create new inbound requests on arbitrary ports. Please pay special attention to the use of the word NEW, as opposed to the TCP/UDP “established” state.