xXxStevenxXx Posted November 10, 2009 Report Posted November 10, 2009 1.) Let's start by creating a new C# Windows Application ( File -> New -> Project -> Windows Application ). Name the project What ever you like. 2.) Put this at the using method using System.Net; 3.) Make an TextBox Anywhere in the Form 4.) Double click the Form1 And it should take you to private void Form1_Load And add the following Code //Get the host string myHost = System.Net.Dns.GetHostName(); // Get the IP string myIP = System.Net.Dns.GetHostByName(myHost).AddressList[0].ToString(); // Show IP this.textBox2.Text = (myIP);Your Done! Build it and it will show your IP I will add An Source Project Need a Tut Written in C#? Feel free to ask meThis tut was brought to you by xXxStevenxXx of Blueshadowz IP.rar
iBotPeaches Posted November 10, 2009 Report Posted November 10, 2009 You can't link to other IPB downloads from another site. They won't load unless logged in on that site.
Lol5916 Posted June 28, 2010 Report Posted June 28, 2010 Sorry to gravedig, but I fixed the code for VS10: string myIP = System.Net.Dns.GetHostEntry(myHost).AddressList[0].ToString();
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now