Not sure, you make it really hard when don't give whole system to then understand the problem, but could try this.
In device manager, find the NIC connected to your network, enter properties, power management and untick allow this device to wake computer. If you have device on network acessing your device or polling it, this will cuase it wake up and not sleep.