step 1)go to control panel
step 2)go to network connections
step 3) if its local area network right click on it and go to properties
step 4) go to internet Protocol (TCP/IP) and click on properties
step 5) put the dots in obtain automaticly for both of the options and apply and exit, it should work