Go to search bar and type “Windows Defender Firewall”
On left side click “Turn Windows Defender Firewall on or off”
If your system has joined Domain then you need to turn off Domain Network settings also
How to turn on Windows Defender Firewall:
In order to Turn on Private and Public Network settings, select “Turn on Windows Defender Firewall”