checks if the internet connection or network is up or down

Added code which checks if the local workstation has a valid internet connection or not. It is good to see the message which tells the user exact problem.

Let me know if this is useful.