Winsock.LocalIP won't compile

Hello,

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

Thanks!
gilaligAsked:
Who is Participating?
 
MattiCommented:
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.

Matti
0
 
MattiCommented:
Hi!

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.


Matti

0
 
gilaligAuthor Commented:
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?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.