Thanks for all the help. I think I’ve figured out what the problem is.
I’ve tried WOL on another type of computer “Lenovo”, it it works perfectly.
The computer I was trying wake on lan before was a SuperMicro. I think the nic needs pcie power and that certain computer doesnt have any.