When a computer goes into sleep it simply cuts certain processes (functions/programs) to save power because it is not being used. You cannot enable the internet while it is in sleep..and I do not know why you would want to. I assume you are asking this because when you come back from sleep you have to reconnect to the internet? If so, I would recommend just changing the sleep settings on your computer so it will not go into sleep mode as soon or at all.