Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting Current TCP/IP Address to VFP
Message
From
18/03/1999 18:33:22
 
 
To
18/03/1999 18:06:17
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00199522
Message ID:
00199535
Views:
17
>Does anybody know of a way to recieve the Current Workstations TCP/IP address in to Vfp as a String. I have been trying to mess with ws2_32.dll but am having no luck. I have also spent 4 hours pouring over the Developers network CD. Any help would be appreciated.

The trivial way is to use the Microsoft WinSock control; the LocalIP property returns the IP address of the local station as a dotted IP address string.

Take a look in the MSDN under the Winsock Control and Winsock control topics; all properties and methods are documented in detail, and there's solid VB code in the topic Using the Winsock Control in the Visual Basic Concepts segment of the MSDN docs.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform