This is a backport of [[https://github.com/bitcoin/bitcoin/pull/19572 | core#19572]] [4/4]
https://github.com/bitcoin/bitcoin/pull/19572/commits/759d94e70f6844443106404882c7b105f3a4dba7
Depends on D10306
I had to revert the IP address change from D1120 to make the zmq_sub.py script work.