made changes so that the global Host variable is updated when checking
the local IP