are you connected to a modem with router ?
go to your connection icon on taskbar , open it and click on support .
then click on details
check if you are getting the ip from your router ?
also check the subnet mask , usually is 255.255.255.0
other option is open cmd command from run tab in start up .
and write : ipconfig /release
and next : ip config /renew
if all those steps didnt work yet , then check if you dont have configured a static ip on your tcp-ip properties in connection icon on tab .
like this :
and this :