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:
Miscellaneous
Thread ID:
00339957
Message ID:
00340273
Views:
18
>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?

Are you maybe using ICS and DHCP to resolve your local IP address?
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
Next
Reply
Map
View

Click here to load this message in the networking platform