The most common cause is that you are trying to run the HC via Steam itself, using your own logged-in account.
class Params class headlessClients title = "Headless Client"; values[] = 0,1; default = 1; ; ;
If basic fixes don't work, the issue may lie deeper in your network or system setup: