Due to the huge interest in the OP, I will publish the solution myself, that I was told in http://www.windows10forums.com :
1) Go to the Device Manager.
2) Expand network adapters, select the adapter(s) you are using (In my case the Intel wireless and the Realtek PCIe devices), then right click and choose properties.
3) Select the Power Management Tab from along the top and make sure that the box that says something like "Allow the computer to turn off this device to save power" is not checked.