Connects to the internet for a specifified length of time