using System; using System.Net; class MainClass { public static void Main(string[] argv) { IPAddress test = IPAddress.Parse("64.200.123.1"); IPHostEntry iphe = Dns.GetHostByAddress(test); foreach(string alias in iphe.Aliases) { Console.WriteLine("Alias: {0}", alias); } } }
33.1.IP Address | ||||
33.1.1. | Create(parse) IP address from string | |||
33.1.2. | IPAddress.Loopback | |||
33.1.3. | IPAddress.Broadcast | |||
33.1.4. | IPAddress.Any | |||
33.1.5. | IPAddress.None | |||
33.1.6. | Is Loopback IP address | |||
33.1.7. | Create IPEndPoint from IPAddress | |||
33.1.8. | Get Address Family, address and port from an IPEndPoint | |||
33.1.9. | Set Port for an IPEndPoint | |||
33.1.10. | Serialize a SocketAddress from a IPEndPoint | |||
33.1.11. | IPEndPoint: MinPort and MaxPort | |||
33.1.12. | Get Alias from IPHostEntry | |||
33.1.13. | IPAddress.HostToNetworkOrder |