remove usage of Settings.getTargetHosts() since it does not consider the port

related to #138