Thanks, if I want to put it back in a default state, should I substitute 0 with 1 ?You're welcome. Note that the "Wake for network access" setting in Energy Saver is controlled by a different Terminal command, sudo pmset -a womp [0 or 1]. Somewhat confusingly, even when this setting is off/set to 0, it does still allow some network activity while the computer is asleep.
The sudo pmset -a tcpkeepalive 0 Terminal command I mentioned earlier is a much more restrictive command that does not have a corresponding checkbox in Energy Saver. It stops any and all network activity while the computer is asleep. It is the brute force option to ensure that the computer will not wake from sleep until you physically wake it up.