PDA

Click to See Complete Forum and Search --> : Get IP, ComputerName and UserName on non-.NET machines


Neofree
Jan 24th, 2003, 09:05 AM
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

Cander
Jan 24th, 2003, 09:09 AM
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!

Neofree
Jan 24th, 2003, 09:17 AM
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

Cander
Jan 24th, 2003, 09:20 AM
VB.NET REQUIRES the .NET Framework. There is no workaround.

RealNickyDude
Jan 24th, 2003, 09:26 AM
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.