The error
Error 10022: Could not resolve host: token.gurobi.com
occurs when Gurobi cannot establish a connection to the Web License Service (WLS) server at token.gurobi.com. This is typically a network connectivity issue that prevents Gurobi from validating your license or obtaining tokens.
Common causes include:
- DNS resolution issues
- Proxy configuration problems
- Firewall restrictions
- Network connectivity issues
To resolve this issue:
-
Verify Network Connectivity
- Check if your machine has internet access
- Verify that you can reach other websites
- Try to ping token.gurobi.com from your terminal/command prompt
-
Check Firewall Settings
- On networks with strict security, firewall settings may be blocking access. Please contact your IT department to confirm if firewall settings prevent connection to the required URLs.
- Ensure the firewall settings allow communication to the domain name (token.gurobi.com) on port 443. It is not recommended to resolve the IP address of token.gurobi.com and whitelist only the IP address(es). We provide multiple servers for redundancy reasons so that the IP addresses might change anytime.
- If using a corporate firewall, whitelist the token server:
- Domain: token.gurobi.com
- Port: 443
- Protocol: HTTPS
-
Verify DNS Resolution
- Check if your DNS server can resolve token.gurobi.com
-
Configure Proxy Settings (if applicable)
- Some networks use a “proxy” that could block the connection. If your company or university network uses a proxy, please set the environment variable HTTP_PROXY and HTTPS_PROXY (which define the proxy address for HTTP and HTTPS connections respectively) in one of the following ways:
- HTTP_PROXY=http://<proxy-address>:<port>
HTTPS_PROXY=http://<proxy-address>:<port> - HTTP_PROXY=http://<username>:<password>@<proxy-address>:<port>
HTTPS_PROXY=http://<username>:<password>@<proxy-address>:<port>
- HTTP_PROXY=http://<proxy-address>:<port>
- Some networks use a “proxy” that could block the connection. If your company or university network uses a proxy, please set the environment variable HTTP_PROXY and HTTPS_PROXY (which define the proxy address for HTTP and HTTPS connections respectively) in one of the following ways:
Further information
- What URLs are needed to run the Web Licensing Service (WLS)?
- How to resolve the error "Failed to connect to token.gurobi.com port 443"?
- Incident response for errors related to WLS (Web License Service)