Network Access to router without internet possibly?

I basically did same recently for an XP computer I wanted to still be on my network, but not have internet access anymore.  I gave the laptop a fixed IP (what it previously was) and set the gateway to nothing (not auto) , just left it blank.  It works as I want it to.