Setting up a Windows token server

On a Windows system, you can start the token service by selecting the Gurobi Token Server menu item from the Gurobi folder of the Start menu. You should only do so after you have installed the Gurobi license key file.

Firewalls

The next step after starting the Gurobi token server depends on your anti-virus software and firewall settings. Most anti-virus software will immediately ask you to confirm that you are allowing program grb_ts.exe to receive network traffic. Once you confirm this, the token server will start serving tokens. If you don't receive such a prompt, you will need to add grb_ts.exe to the firewall exceptions list. You do this by selecting Allow a program through Windows firewall under the Security area of the Control Panel (labeled Allow an app through Windows firewall in Windows 8). You should add grb_ts.exe to the list of exceptions.

Some machines have more restrictive firewalls that may require additional action. The Gurobi token server uses port 41954 by default. If you are unable to reach the token server after taking the steps described so far, you should ask your network administrator for more information on how to open the required port.

Starting and stopping the grb_ts Windows service

Once the token service has been started, you should see the grb_ts service listed in the Services tab of the Task Manager. To start or stop the service, click on the Services button at the bottom-right of the Services tab, and then right-click on the Gurobi Token Server item on this screen.

You can also start or stop the Gurobi Token Server service from a console window (also known as a cmd window) that has administrator privileges. Running grb_ts -h lists command-line options. Issuing a grb_ts -s command stops a running license service. Issuing a grb_ts -v command starts the license service in verbose mode. Verbose mode produces a log message (in the Windows Event Log) each time a token is checked in or out.

To upgrade from an earlier version of the Gurobi Optimizer, you will need to perform the following steps (on the machine running the token server):

  1. Stop the old token server.
  2. Install the new version of the Gurobi Optimizer.
  3. Upgrade your license file (or modify GRB_LICENSE_FILE to point to the new license file).
  4. Start the new token server.
Windows services can be stubborn. If the new token server refuses to start, you may need to delete the old one manually. To do so, type sc delete grb_ts from a cmd window that has administrator privileges.

All output from the Gurobi Token Server goes to the Windows Event Log. You can access this in Windows Vista or Windows 7 through the Event Viewer. Type Event in the search box under the Start menu to launch the viewer.

Next steps

Clients of the token server also need simple license files. Your next step is to set up a client license.

Once your token server is running and you've set up a client license, you can move on to testing the license.

You can test the state of the token server at any time, as well as get a list of the clients that are currently using tokens, by typing gurobi_cl --tokens from a cmd window.

Try Gurobi for Free

Choose the evaluation license that fits you best, and start working with our Expert Team for technical guidance and support.

Evaluation License
Get a free, full-featured license of the Gurobi Optimizer to experience the performance, support, benchmarking and tuning services we provide as part of our product offering.
Academic License
Gurobi supports the teaching and use of optimization within academic institutions. We offer free, full-featured copies of Gurobi for use in class, and for research.
Cloud Trial

Request free trial hours, so you can see how quickly and easily a model can be solved on the cloud.

Search