>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.