check for local ip or no ip