Prosody telnet 5582 just closes

We want to list all the connected JVBs. I read you can query the jvbbrewery muc in Prosody to list them.
We are running Jitsi with Docker. I have enabled “auth_telnet” and forwarded port 5582 in docker-compose.yml. But doing telnet just closes:

[jitsi@mymachine ~]$ telnet localhost 5582
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
Connection closed by foreign host.

Shouldn’t I get a prompt to send commands? What am I doing wrong?

I’m not familiar with Docker setup but maybe localhost is not the right interface. Normally the following command works

echo "help" | netcat localhost 5582

netcat does the same - nothing:

[jitsi@mymachine ~]$ echo “help” | netcat localhost 5582
[jitsi@mymachine ~]$

I think localhost should be OK as it works with JiCoFo

[jitsi@mymachine ~]$ curl http://localhost:8888/about/version
{“name”:“JiCoFo”,“version”:“1.0.954”,“os”:“Linux”}

[root@mymachine ~]# netstat -tunapl | grep 5582
tcp 0 0 0.0.0.0:5582 0.0.0.0:* LISTEN 21810/docker-proxy