Updated getHostIP to access internet with a wget command.