Open system preferences > network > click on gear icon and make service inactive .

do you use apple air port express in that it is set as off bridge mode , in service provider router NAT box is unchecked , the user must set the settings as automatic and firewall box is checked in ISP router .
It is always recommended to use automatic location for best performance , for 2.4 GHZ and 5 GHZ see this article Recommended settings for Wi-Fi routers and access points - Apple Support
Also DNS server settings is must keep as 8.8.8.8 and 8.8.4.4 see this article Non-responsive DNS server or invalid DNS configuration can cause long delay before webpages load - Apple Support
Read this article also macOS Sierra: Bridge virtual network interfaces


I had already suggested , delete each and every settings in previous post that is shown with diagrams , the essential part you must have wireless network password , that diagrams exactly shows step by step how to configure the network from starting .
You can't soon conclude that their is problem in Mac , as the user must try to create a new user account see this article How to test an issue in another user account on your Mac - Apple Support
Also there are possibilities that internet is very slow , and server is down .
And wireless diagnostics is to be performed Check for Wi-Fi issues using your Mac - Apple Support
In the end of report 5 to 6 points are shown like set as automatic location ...etc , if there is any problem the report will clearly indicate .
Not sure its hardware or software issue but you can follow these articles How to use Apple Hardware Test on your Mac - Apple Support
And macOS Sierra: Use Apple Diagnostics or Apple Hardware Test
The last step is reinstall Mac OS How to reinstall macOS - Apple Support
In which you will not loose the data ( Archive installation ) .
And the best of all is erase the HD and reinstall the os macOS Sierra: Erase and reinstall macOS