using System;
using System.Net;
using System.Net.Sockets;
class ip
{
public static void Main()
{
String HostName ;
Console.WriteLine("Enter Web Address:");
HostName = Console.ReadLine();
Console.WriteLine("Looking up: {0}", HostName);
IPHostEntry NameToIpAddress;
NameToIpAddress = Dns.GetHostEntry(HostName);
int AddressCount = 0;
foreach (IPAddress Address in NameToIpAddress.AddressList)
Console.WriteLine("IP Address {0}: {1}", ++AddressCount, Address.ToString());
Console.ReadLine();
}
} |
Guide.
ReplyDeleteIf anyone want to find ip address of any website means try domain to ip converter tool like WhoisXY.com
ReplyDelete