distinguish between public and private ip