Agent receiver not answering registration attempt

CMK version: 2.2.0p32
OS version: Ubuntu 20.04.6

Error message: ERROR [cmk_agent_ctl] src\main.rs:29: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (os error 10060)

Hello,

I am trying to register a Windows host to my CheckMK instance but it seems like my CheckMK does not answer the request.

I created firewall rules to allow the communication via TCP port 8000 coming from my host.
I can see traffic coming from the host to the CheckMK server but the server does not answer. There is no outgoing traffic.

The agent registration config looks like this:
AGENT_RECEIVER: on
AGENT_RECEIVER_PORT: 8000

Anything I need to activate here?

Found the problem: Local port (8000) on CheckMK server was not allowed via ufw.