changed getHostName to getHostAddress
Merge branch 'fix_pub_sub'