• For me it was because of firewall udp 137 port which was not allowed.

    This port is for network discovery so it is essential for endpoints to be reached successfully.

    Hope this helps you, because I was stuck at it for many days with no solution.