We help IT Professionals succeed at work.
Get Started

Getting Local IP Address

klopex asked
Last Modified: 2012-05-04
How do I get my local IP address in VB?  

I work in a school district where we have Win95 - WinXP machines.  I need code that will work on all.  I want to write it in VB6 so it will work on the Win95 machines.  If the code is different for various versions of Windows, then please provide code to handle that.

What I am trying to do is build an a client-server pair of applications.  The client runs at boot on machines in our network.  It will send the Computer name and IP address to the server software and then exit.  If the server is not found then exit.  The server will replace records in a database when they are updated.  We can then look at the list from the server to know what IP address to type in when we use VNC (a GNU-freeware type of PCAnywhere).

If you can help me with the whole project, I will increase the points.  So far, I have the ability to get the computer name.  I'm just getting started.

Watch Question
This problem has been solved!
Unlock 1 Answer and 14 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE