[C#] Simple Net Tools

Results 1 to 9 of 9
  1. #1
    Omega Ron is offline
    MemberRank
    Apr 2005 Join Date
    Location
    8,990Posts

    [C#] Simple Net Tools

    Just wrote this up in a few minutes. Don't expect much, I'm just demonstrating the usefulness of having an IP resolving feature in a program rather than using the command prompt. I didn't add in any exceptions so it'll crash if you try to use a letter for a port number, for example. Too lazy. =p

    I might actually turn this in to something bigger when I get bored. We'll see I guess.

    Edit-
    Added a couple more tools, getting the local IP address of the system and a netstat tool.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Ron; 11-01-09 at 09:17 PM.


  2. #2
    Account Upgraded | Title Enabled! Mindblaster7 is offline
    MemberRank
    Oct 2008 Join Date
    DenmarkLocation
    773Posts

    Re: [C#] Simple Net Tools

    Brilliant Ron

    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!

  3. #3
    The Gamma..? EliteGM is offline
    MemberRank
    Jul 2006 Join Date
    NandolandLocation
    4,077Posts

    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?

  4. #4
    Omega Ron is offline
    MemberRank
    Apr 2005 Join Date
    Location
    8,990Posts

    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.
    Last edited by Ron; 13-01-09 at 02:25 AM.

  5. #5
    Account Upgraded | Title Enabled! Cask is offline
    MemberRank
    Jul 2007 Join Date
    887Posts

    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.

  6. #6
    Account Upgraded | Title Enabled! ExtremeDevilz is offline
    MemberRank
    Apr 2008 Join Date
    647Posts

    Re: [C#] Simple Net Tools

    not bad nice.

  7. #7
    Account Upgraded | Title Enabled! josh954r is offline
    MemberRank
    Aug 2008 Join Date
    In ur ComputerLocation
    238Posts

    Re: [C#] Simple Net Tools

    very nice 9/10

  8. #8
    :) Horizon is offline
    MemberRank
    Jan 2009 Join Date
    Illinois, U.S.Location
    2,381Posts

    Re: [C#] Simple Net Tools

    I like it. Have it display your external IP.

  9. #9
    WowIwasSuperCringeB4 XZeenon is offline
    MemberRank
    Jun 2008 Join Date
    CanadaLocation
    1,405Posts

    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.



Advertisement