Copied hostname detection logic and default TB hub hostname to addon6

Change-Id: I017775fece6d66dc20835e0a4a81f219213156b2