I suspect it could be a firewall issue. Make sure that the firewall is not blocking the port.
You can check this link on how to open ports in the firewall:
Thanks for your answer.
I tried this before and when I checked it in the resource monitor it shows me that the ports are permitted and not restricted.
I know in general how to set up a rule for the firewall. And I think I did it right. But if someone can told me how exact the rule should be set up. I would like to try it.