?
Solved

Obtaining an IP Address through VB

Posted on 2002-04-20
2
Medium Priority
?
211 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 600 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

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The purpose of this article is to demonstrate how we can use conditional statements using Python.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

765 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