3
$\begingroup$

How do I validate my Gurobi academic license remotely, that is, from a computer that is not on my university network?

Official instructions for Gurobi 9.1 are here: https://www.gurobi.com/documentation/9.1/quickstart_mac/academic_validation.html, but these require a VPN.

There are old instructions for using an ssh tunnel on the (retired) google group https://groups.google.com/g/gurobi/c/MaEP4cun8o8?pli=1, but these no longer work.

$\endgroup$
2
  • $\begingroup$ I don't think this belongs here. And your answer is very hard to read. Why don't you just delete the text instead of using strikethrough? License questions should be handled directly with Gurobi Support. $\endgroup$ – mattmilten Jan 19 at 16:18
  • $\begingroup$ I figured this way at least people with the same question will be able to find an answer without bothering Gurobi support staff. (Apparently a number of Gurobi users use ssh instead of a VPN, but the official docs don't address how to do that, and the previous public forum that we used to use for sharing how has been archived in read-only mode and shows obsolete information. I did also post this on a Gurobi support forum, but at the moment anyway that forum is a little harder to find / google.) I have edited the answer to remove the previous answer, as you suggested, thanks. $\endgroup$ – Neal Young Jan 19 at 19:07
3
$\begingroup$

EDIT: Instead of a VPN, one can apparently use an ssh SOCKS proxy. This worked for me as of January 2021. Specifically, commands for enabling a SOCKS proxy on my mac are:

sudo networksetup -setsocksfirewallproxy 'Ethernet' 127.0.0.1 4088
sudo networksetup -setsocksfirewallproxy 'Wi-Fi' 127.0.0.1 4088

ssh -N -D 4088 <remote host>

Then, in a separate terminal window, run grbgetkey as usual.

grbgetkey <LICENSE KEY>

See also https://support.gurobi.com/hc/en-us/community/posts/360076437251-grbgetkey-via-ssh-socks-proxy .

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.