Update NetworkAnalyser

included exception. If user dosent enter a hostname, then it will print an exception error