fix for public / private IP addresses