Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IP Address
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
IP Address
Miscellaneous
Thread ID:
00339957
Message ID:
00339957
Views:
37
A while back Eric Moore pointed me to a function to get the IP address:
oWinSock = CreateObject("MSWinsock.Winsock")
mIPaddr = oWinSock.LocalIP

When I run it on the Win 95 computer here it works fine. Each time I sign into my ISP the function shows a different address. If not connected it returns a blank. Exactly what I expected. However, on my Win 98 computer it always returns the same IP address. I searched the registry and found the address at:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\DHCP\DhcpInfo00

Anyone got any ideas as to what is happening here?
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Next
Reply
Map
View

Click here to load this message in the networking platform