Network discovery and connecting working