Winsock.LocalIP won't compile

Posted on 2008-11-06
Medium Priority
Last Modified: 2008-11-12

When compiling my vbp file into an exe the compilation stops because of:
What is missing from the project for this command of Winsock  that is preventing the compilation.

Question by:gilalig
  • 2
LVL 14

Expert Comment

ID: 22899113

Try this kind:

Dim s$
s = Winsock1.LocalIP
MsgBox s

You need put that value to a variable or use it directly in some functionality.
It will return String.



Author Comment

ID: 22902185
Of course, the command is used in order to get the value to be placed as a string into a caption on the form . My problem is that it doesn't compile. Is there some reference that should be used or something else missing?
LVL 14

Accepted Solution

Matti earned 2000 total points
ID: 22902206
Well there is a component Microsoft Winsock Control 6.0
That needs to be in the project. That is included in a professional version of Visual Basic

There is no extra references, you can press F2 in VB IDE that launch Object breowser the MS winsocklib is there.


Featured Post

Technology Partners: 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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

840 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