Is the computer the same in both cases, i.e. is it a laptop that you
physically move between home and campus? Because in my experience
this should work, as far as I know, once you run grbgetkey and
correctly store the license file somewhere that Gurobi can find it
(e.g. by pointing GRB_LICENSE_FILE environment variable at it), Gurobi
should not require the network in order to run. If you are using a
different computer then you may have to take it physically in to the
campus to run grbgetkey, since apparently the server that grbgetkey
connects to, can see whether you're using the IP address of a
university or not.
By the way, note that if you don't use GRB_LICENSE_FILE environment
variable then Gurobi will look in several default places but this may
not bear any relationship to where you installed Gurobi, I found this
confusing at first, e.g. I installed Gurobi in /home/nick/gurobi500
whereas it was looking in /opt/gurobi500, /opt/gurobi50 and /home/nick
for the license file... I got around this using GRB_LICENSE_FILE=/home/
nick/gurobi500/gurobi.lic, you might need this too. Of course you
should make the necessary changes if you are running Windows or Mac
but I would imagine that grbgetkey and Gurobi behave much the same in
those cases.
cheers, Nick