The error message ‘AnyConnect was not able to establish a connection to the specified secure gateway’ appears when users try to connect to a VPN using the AnyConnect Client. This issue arises because the AnyConnect Client VPN is not able to perform the connection process successfully with the remote server and there are some blockades in its way. Today, we will be covering the said error message including the causes of the error message and various solutions that you can implement to get rid of the error.
What causes the ‘AnyConnect was not able to establish a connection to the specified secure gateway’ Error Message?
It can be due to many reasons. Sometimes, it’s a blockage from antivirus or firewall or sometimes, it can be caused by having a bad internet connection. The following would be the primary causes; to mention in brief —
- Antivirus or firewall issue: Antivirus software can at times interfere with the connection process of the AnyConnect Client VPN and not allow it to connect to external networks or servers because of security reasons. Many times, it will block many incoming and outgoing connections. So, you won’t be able to connect to your favorite VPN using Anyconnect.
- Client configuration is wrong: If you have configured your Anyconnect client wrongly and the VPN configurations that are stored in it are not correct, then you will face issues in establishing successful connections.
- Internet restrictions: At times, IP addresses of some countries might be blocked by your ISP provider and you might not knowingly try to connect to the VPN of the same country that has been blocked by your ISP. Then you will face issues.
To circumvent the error message, you can follow the solutions given down below but make sure to give your computer and the application a restart before moving to the other fixes.
Solution 1: Disabling Antivirus
First things first. Since most of the times, the issue is being caused by antivirus blockage which is a common scenario. Therefore, in such a case, you should try to disable any third-party antivirus that you have installed on your system and then try to connect to the VPN using AnyConnect. Hopefully, it will isolate the issue.
Solution 2: Stop Internet Connection Service
At times the ICS service is running which causes problems for the AnyConnect Client to connect to a VPN. You will have to disable it in order to fix the problem. Here’s how to disable the service:
- Press Windows + R and type services.msc
- When the window opens showing the services, search for Internet Connection Sharing service. Right click on it and click on Stop.
- Then exit the Services windows by closing it.
Solution 3: Disable Internet Connection Sharing (ICS)
There were several cases where if ICS was enabled in Windows, then users faced this issue. In order to disable ICS, follow the instructions down below:
- Open up the Control Panel
- Go to Network and Internet Sharing and then click Change adapter settings.
- Afterward, you will have to right click on the shared network connection, and then click on Properties.
- In the properties window, click on the Sharing
- Once there, you need to uncheck the checkbox that says “Allow other network users to connect through this computer’s Internet connection”.
- After doing that, click OK.
If your issue was being caused by ICS being enabled, then this must have fixed it.
Solution 4: Select the option Connect to current Network in AnyConnect VPN
Sometimes, the Any Connect client VPN fluctuates between different networks, so you have to select the option of connecting to the current network only. This might fix the issue for you. Here’s how to do that:
- Open the AnyConnect Client, and where you see the Network written, right click on it.
- Click on “Connect only to current Network”.
Solution 5: Try an Alternate Connection
At times, the internet connection that you are using might have some restrictions or might not be working properly which is causing the issue. In such a scenario, you will have to use an alternate connection such as WiFi or mobile hotspot to see if you are able to connect to the VPN.