Pass ip address as a parameter to the hostname class