Set TCP/IP to Obtain Address Automatically
Some networks have you manually set the IP Address but majority of them does not. If your network doesn't require you to manually set it and it is selected, you will not be able to access the internet. If you can't access the internet, check to see if the TCP/IP is set to manual or automatic. If it is on manual try automatic.
To set the IP automatically, choose the operating system