Link to home
Start Free TrialLog in
Avatar of gilalig
gilalig

asked on

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!
Avatar of Matti
Matti
Flag of Finland image

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

Avatar of gilalig
gilalig

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of Matti
Matti
Flag of Finland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial