Why block on the server?
If your server loses internet, all 50+ workstations lose their licenses simultaneously. By pre-emptively blocking on the server, you ensure the license service (lmgrd.exe and SW_D.exe) only listens locally.
How to do it on Windows Server 2019/2022: solidworks host file block install
Linux License Server Hosts File: For admins running the license manager on Ubuntu/CentOS: Why block on the server
Before any modification, create a backup. Open an Administrator command prompt and run: Linux License Server Hosts File: For admins running
copy C:\Windows\System32\drivers\etc\hosts C:\Windows\System32\drivers\etc\hosts.backup
127.0.0.1 sw_d.licensing.solidworks.com 127.0.0.1 sw_d.solidworks.com