Customized impl of hostIsIP, also add in PAC.