I tried many things, but the only way worked for me was that :
You should allow intenet access on both private and public networks to Node.js through firewall.
find Node.js path by right clicking on it then on open file location , then go to firewall and add it to allow list.