hmm ping it und then make a decision

is it reachable -> connect
when not ? use the local profile an dont connect

its a easy if instruction