active ip detection code update