Connects to the network