If you have a Firewall protecting your network, it could have WhatsApp in its block list. This could be the reason why you are experiencing the WhatsApp not connecting on the Wi-Fi issue. To eliminate the issue, you will have to remove WhatsApp from the Firewall block list.