throws exception if server not running; returns null if word is not in the server