Solved

Obtaining an IP Address through VB

Posted on 2002-04-20
2
209 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
[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 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

696 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