Get Website Server Information

Posts 13 of 3 · Page 1 of 1
Get Website Server Information
Ok so I need some help what I am trying to do is get some information from a websites server. So the user enters the IP and then it uses that Ip to get information from that server like what OS, Server (Apache), Owner and etc. What it's running and the owner it's registered to. And I have no idea where to start this off could someone maybe help me out a little if possible? I hope that makes sense of what I am trying to do.
System.Net.GetHostAddresses("google.com")
Returns a collection containing the IP addresses associated with the domain name(website url).
Creating an instance of System.Net.WebClient allows you to upload/download files and stuff.
System.Net.HttpWebRequest may also be of use.
That's all I can think of at the moment. Just mess with the stuff and experiment.

Here, try this, it's a small start:
Code:
Console.WriteLine("Enter the name of a website.");
string URL= Console.ReadLine();
            System.Net.IPAddress[] SiteAddresses = System.Net.Dns.GetHostAddresses(URL);
                foreach (System.Net.IPAddress addr in SiteAddresses)
                {
                    System****.File.AppendAllText(URL, addr.ToString() + " ");
                }
That makes a file with the name of the website you enter, and writes all the IP's associated with the site to the file.
The blocked out part is the IO namespace. Damned filters. :/
Quote Originally Posted by t7ancients View Post
System.Net.GetHostAddresses("google.com")
Returns a collection containing the IP addresses associated with the domain name(website url).
Creating an instance of System.Net.WebClient allows you to upload/download files and stuff.
System.Net.HttpWebRequest may also be of use.
That's all I can think of at the moment. Just mess with the stuff and experiment.

Here, try this, it's a small start:
Code:
Console.WriteLine("Enter the name of a website.");
string URL= Console.ReadLine();
            System.Net.IPAddress[] SiteAddresses = System.Net.Dns.GetHostAddresses(URL);
                foreach (System.Net.IPAddress addr in SiteAddresses)
                {
                    System****.File.AppendAllText(URL, addr.ToString() + " ");
                }
That makes a file with the name of the website you enter, and writes all the IP's associated with the site to the file.
The blocked out part is the IO namespace. Damned filters. :/
Thanks, I can retrieve the IP from a website now I just need to figure out how to use HttpWebRequest in C#.
Posts 13 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?