Fixed host address string by creating a shortened version of the
serverurl, to exclude the tomcat webapp context and return just the host
address