Re: [C#] Simple Net Tools
Brilliant Ron :thumbup:
Many thanks! But I like the old fashion way on getting IP's :P
But no doubt that I will use your tool from time to other! :drool:
Re: [C#] Simple Net Tools
Could you PM me the source. I'm learning C# atm so It'll be a huge learning help to me.
Also, you use the form designer right?
Re: [C#] Simple Net Tools
For this app, yeah. I usually just do everything through a console, though. I'll post the source once I'm done adding everything I want to add.
Added two more tools to it, download is in attachment.
Edit-
Adding a couple more things to it and leaving room for some extra stuff. Also working on a better interface.
Re: [C#] Simple Net Tools
I would also, if you don't mind, use the source once posted. I'm just in the middle of writing a program to run at my new school since they've blocked the console window.
Re: [C#] Simple Net Tools
Re: [C#] Simple Net Tools
Re: [C#] Simple Net Tools
I like it. Have it display your external IP.
Re: [C#] Simple Net Tools
How to get IP adress from Website:
private void button1_Click(object sender, EventArgs e)
{
foreach (IPAddress ipaddress in Dns.GetHostAddresses(Websitetxt.Text))
{
ipaddresstxt.Text = ipaddress.ToString();
}
}
Get LocalIP:
private void locIpadress_Click(object sender, EventArgs e)
{
foreach (IPAddress locadress in Dns.GetHostByName(Dns.GetHostName()).AddressList)
{
localiptxt.Text = locadress.ToString() + "";
}
}
It might give warnings but thats alright.