Host detection based on file