Added check for loopback addresses