Check for local instead of comparing ips