In windows, you need to configure the card. You can either go through device manager or network and sharing center, change adapter settings, properties of the NIC, click the “configure” button just below the “connect using” box. It may be on the advanced or power management tab.
“Wake on LAN” “Wake system from S5” “Allow this device to wake the computer” or similar. There may be other choices about only allow magic packet, just depending on the card and the driver.
If you’re using the default driver installed by Windows, your choices may be more limited. Try to get the board/chipset specific driver for the LAN card from the manufacturer.