Navigate to the following directory path: C:\Windows\System32\drivers\etc
After making the changes, restart SolidWorks and verify that it launches successfully and connects to the license server.
If resetting your hosts file does not instantly resolve your SolidWorks launch errors, try these additional troubleshooting steps: Check the SolidWorks Licensing Service solidworks host file block fix
# SolidWorks Block 127.0.0.1 www.solidworks.com 127.0.0.1 solidworks.com 127.0.0.1 www.swdoc.com 127.0.0.1 swdoc.com 127.0.0.1 customerportal.solidworks.com 127.0.0.1 activation.solidworks.com 127.0.0.1 licensing.solidworks.com 127.0.0.1 ls.solidworks.com 127.0.0.1 www.solidworks.com.swtea.com 127.0.0.1 swtea.com
The hosts file is a plain text file that maps hostnames to IP addresses. When you type a web address, your PC checks this file before asking the internet's DNS servers. Open Command Prompt and type: The SOLIDWORKS host
Open Command Prompt and type:
The SOLIDWORKS host file block issue can occur due to various reasons, including: Save and Flush DNS Go to File > Save in Notepad
Highlight these lines and delete them. Ensure there are no leading # symbols on lines you want the system to read (though in this case, you want the system to reach these servers, so the lines shouldn't exist at all). 3. Save and Flush DNS Go to File > Save in Notepad. Open the Command Prompt (type cmd in the Start menu).
If you are unsure which lines to delete, you can rename the current file and let Windows create a fresh one:
You will see lines starting with # . These are comments. You want to add or remove lines to fix the issue.