Results 1 to 5 of 5

Thread: Get IP, ComputerName and UserName on non-.NET machines

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2003
    Posts
    37

    Get IP, ComputerName and UserName on non-.NET machines

    Hello,

    I have Visual Basic .NET, and I would like to create a small program that gets the LAN IP, ComputerName and UserName on a machine that does not have .NET Framework installed.

    How would I do this?

    Thanks,

    Neofree

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    You cant get a Lan IP or computername without the one or the other . ie you need ip to computer computername or computername to get ip. Unless you mean run this application on a local machine client. Imn which case you cant do that because the .NET framework is REQUIRED!
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2003
    Posts
    37
    Well I know in VB.NET you can use:

    SystemInformation.ComputerName
    SystemInformation.Username

    But from there I don't know how to get the IP. But wouldn't the above require .NET Framework anyway? Isn't there a way to use older libraries and not require .NET on the machine that runs the code? Or do I have to use VB6?

    All I'm trying to do is make a program that gets LAN ID, ComputerName and Username and shows it in a Window on the screen. But many of the machines that it would be ran on would not have .NET Framework installed, and it would not be convenient to put it on as this is designed to just gather information easily in a helpdesk environment, instead of having a user get this information manaully.

    Neofree

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    VB.NET REQUIRES the .NET Framework. There is no workaround.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    To do what you're suggesting Neofree (not need VB.NET), you'll need an older version of VB which doesn't use the NET Framework.
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width