How would you check whether a computer is connected to the local network and identify where the connection is failing?