Im working in a crude server/client architecture. So i want to know if is there a function that returns the self IP?. Ive read some articles that i can acces the w registry, and read from there, but i dont know how to read it. Anyone know?
The registry is accessed using Win32 API calls. For instance a registry value is read using RegQueryValue(). However there are a few prerequisite steps that need to be taken to read a registry value. I will leave that as an exercise for you, don't worry, it's not that difficult.
Here is a high level pointer into the MSDN documentation that you can drill down into to learn about using the registry functions:
I was not able to find reference to GetPeerName (as suggested by williamu) at allapi.com or in the api viewer. Where can I find it? I need to get the user's ip address from w/in a visual foxpro6 application to be able to pass it to a third party storage application (lexmark/scopeware).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.