Now using hostname/ip address instead of username
Fixed global variable error and use hostname/ip address for md5 sum