moved ipv4/6 connect initiator to global function - used in active check too