Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

(50 pts) Finding Current IP Address

Posted on 1999-07-03
3
Medium Priority
?
182 Views
Last Modified: 2013-11-13
I need an ActiveX Control or the VB Code that will return the current IP Address.  If you have an .OCX that will do this, I need it's dependancy file (.DEP) as well.

HATCHET
0
Comment
Question by:HATCHET
[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 7

Accepted Solution

by:
kamall earned 200 total points
ID: 1521754
Where are the 50 points?

Use the Microsoft Winsock Control to get the IP address.

Text1.Text = Winsock1.LocalIP

Thats all.

I hope that you don't forget the 50 points :-)
Regards.
0
 
LVL 3

Author Comment

by:HATCHET
ID: 1521755
kamall,

Good Answer !  Just what I was looking for.  Quick, clean, and it's a Microsoft ActiveX Control.   =]

One think you did fail to mention which I figured out is that you need to go to your Components dialog and add the "Microsoft Winsock Control".  Once this is added, you can make that call to it : Winsock1.LocalIP

HATCHET
0
 
LVL 7

Expert Comment

by:kamall
ID: 1521756
Thanks HATCHET.
I thought that you (and everybody) already know how to add a new component to your project. Thats why I didn't mention it.
Regards.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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 …
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
This video teaches viewers about errors in exception handling.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

722 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