add functions for loop-back / private addresses
fail if running php version is not 5.2