Solved

Obtaining an IP Address through VB

Posted on 2002-04-20
2
203 Views
Last Modified: 2013-11-13
I'm doing a uni project and I need to know how to get VB to return my systems IP Address to my application so that it can be encrypted.  The IP address could either be displayed automatically or through clicking a button?
0
Comment
Question by:balabaster
2 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 6956791
Take a look at the following links:
Determining the Local IP Address for the Installed Adapter
http://www.mvps.org/vbnet/index.html?code/network/getadaptersinfo-localipaddresses.htm

Determining All Local IP Addresses for All Installed Adapters
http://www.mvps.org/vbnet/index.html?code/network/getadaptersinfo-localipaddresses.htm

Anthony
0
 
LVL 4

Accepted Solution

by:
RichW earned 150 total points
ID: 6957683
Place a Winsock control and a Textbox on your form.

This will list the IP address.

Private Sub Form_Load()
  Text1 = Me.Winsock1.LocalIP
End Sub
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

706 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now