Kodi itself, will not connect the Wifi - the system you have it running on, and the underlying OS will.
What's it running on? How are you determining that Kodi is not online?
Running 16.6 could be part (or all) of the problem, depending on the addon you're attempting to use.
Many require 17.0+ these days.