If you have a legitimate license or want to clean your system:
C:\Windows\System32\drivers\etc\hosts.solidworks, dasult, geomagic, or 0.0.0.0.127.0.0.1 localhost line intact.ipconfig /flushdns in Command Prompt.Student editions have watermarks and expiration dates. Blocking the host file does not remove the watermark. It only breaks the license check, causing the software to crash after 30 days. Solidworks Host File Block
Dassault Systèmes offers a full-featured version for hobbyists and makers. It has a watermark. It cannot open commercial files. But for learning and personal projects, it is $9 a month—cheaper than a pizza. SolidWorks Host File Block Part 8: How to