WSL2 Ubuntu cannot ping local ip

Viewed 7200

enter image description here

I need to find out why I'm not able to ping my local IP for my main computer from my ubuntu wsl terminal. For some reason, the WSL ip is 172.24.61.1/20. I have a postgresql server on 192.168.1.247 my main pc but it cannot even ping it. Anyone know why?

1 Answers

Firewall!

Turn off the firewall in windows and check the ping. Once it starts pinging add a rule for incoming and outgoing.

To turn off firewall in linux just use

systemctl stop firewalld 

that is if you have firewall installed there, check it by using

systemctl status firewalld
Related