Fixed sample code 'hostname' option