changed ip lookup from remote to local to make more accurate