Firewall blocks mongoDb

I have just installed a new version of MongoDb ( version 4.0 ) and after that port 27017 is blocked with the errormessage:

Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: NetworkTimeout: Error connecting to 127.0.0.1:27017 :: caused by :: Socket operation timed out :
connect@src/mongo/shell/mongo.js:251:13
@(connect):1:6
exception: connect failed

When I turn of the firewall, mongoDb is working.
I have checked that the port 27017 is opened in the firewall application,  and I also choose that the firewall should ask before blocking, but the databaseaccess is blocked without asking.

I will not take the risk to open the firewall, so until I do not get an solution, I will not be able to work on the database.

Thank you for the screenshot, Kirsten.
Please click on "packet rules" as marked in below image.
User-added image
Provide the screenshot of the next window that you get after clicking on that option.

Hi Kirsten,

We'll help you to resolve this issue. Please provide us the screenshot of the error to verify and assist you further.

Thanks,
Vishnu Vardan

Thank you for the screenshot.
Since it is in your language, we aren't able to identify the exact options.
Hence, request you to get connected with our additional support for which an email instruction has been sent.
If the email is not found in inbox do check in spam and junk folders.

Hi Kirsten,

We'll help you to resolve this issue. Please provide us the screenshot of the error to verify and assist you further.

Thanks,
Vishnu Vardan

Kirsten, if you have the screenshot already, please just click on 'Answer' & then click on the 'Image' [mountain symbol] & follow the instructions on screen to upload it here.

Thank you.

Here is the requested screenshot:
Requested screenshot