Ok log into your router via a cable connection.
Simply put the gateway address of the router into your browser as an address 192.168.0.1 or 192.168.1.1.
Once logged into the router, make sure Dhcp is enabled, and that the upnp option is enabled in the router one of the router sub menus. save the changes made before exiting the router menu.
It`s important to know that if the router has a hardware firewall set to on, that the setting should be set to medium, as high can cause problems, in the case of windows firewall or the firewall in windows security center also running at the same time set to high so check its status in windows if enabled. Both should not be running at the same time, i recommend you disable one or the other or lower each of the settings to medium.
Now go to your control panel in windows and click on, network and internet, click on it
under network an sharing. click on view network and status. click on change adapter settings to the right.
Right click on the adapter device, select properties.
Click on the TCP /IPv4 protocol. select properties when highlighted.
Click o the alternate config tab if there is are any settings pre stored in there . Change the option to automatic private IP address. Save and exit changes.
And restart the system see if it connects.
The only other way to clear this problem is to uninstall the driver for the Ethernet card via windows device manager.
Restart the system. wait till windows loads and detect the hardware device and installs the Ethernet adapter driver. Then set up a new network connection or connect click on connect to a network. It should show the router select it. choose the setting for it as public.