AWS SDK for .NET Documentation
Hostname Property
AmazonAmazon.EC2.UtilEC2MetadataHostname Did this page help you?   Yes   No    Tell us about it...
The private hostname of the instance. In cases where multiple network interfaces are present, this refers to the eth0 device (the device for which the device number is 0).
Declaration Syntax
C#
public static string Hostname { get; }

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)