Eng 5079

Fix an issue with changes to strings returned for hostname breaking public APIs. For public APIs return just the hostname or IP.

Also make the mistake of removing some dead method parameters and unleashing gehenna in the process.