Yesterday, 11:20 AM
Update: for some reason that I don't get, macOS return to its initial behaviour. Now I can access the server regardless the system is sleeping or not. What I did was to reset the battery optimized charging setting, that now it functions as it should.