?
Solved

list multiple nic ip addresses from local machine vb6

Posted on 2005-03-16
3
Medium Priority
?
468 Views
Last Modified: 2010-08-05
How would I go about list all local ip addresses on my local machine (a server)?  

Like:

Computer A - 2 nics
Nic 1: 10.10.10.1
Nic 2: 172.20.20.1

Computer B - 3 nics
Nic 1: 10.10.10.1
Nic 2: 172.20.20.1
Nic 2: 131.1.1.11
0
Comment
Question by:bluedragon99
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
SCDMETA earned 2000 total points
ID: 13561887
There is source code to do this at the following link.

http://www.developerfusion.com/show/1851
0
 
LVL 1

Author Comment

by:bluedragon99
ID: 13652953
Works perfectly, thanks
0
 
LVL 1

Author Comment

by:bluedragon99
ID: 13654765
found this one too in my research, makes my head hurt less...


Set IPConfigSet = GetObject("winmgmts:").ExecQuery("select IPAddress from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE")
For Each IPConfig In IPConfigSet
    If Not IsNull(IPConfig.IPAddress) Then
        For i = LBound(IPConfig.IPAddress) To UBound(IPConfig.IPAddress)
            msgbox = IPConfig.IPAddress(i)
        Next
    End If
Next
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question