Kodi Jarvis and Krypton Not Connecting to Wifi Connection

I have tested two Windows 7 computer now and both Krypton and Jarvis versions of Kodi. I am having to same issue.

I have a fast broadband connection and I can browse the internet before starting Kodi and while Kodi is open. I am definitely connected to the internet.

There is no VPN turned on and there is no proxy settings enabled in Kodi.

My internet connection is definitely working.

When I go to Settings, System Information, Network it displays Internet: Not Connected. Check network settings.

I am unable to add anything into Kodi.

How do I fix this? Do you have to connect Kodi separately in some way to the wifi?

Is Kodi definitely compatible with wifi on Windows 7 or do you have to connect directly to a router?