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

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