-
Can Someone Help Me With this Problem?
When I'm online and I use the file winipcfg to find my IP Adrress I get a value such as
"152.175.235.164" - which I know is Correct.
But in vb when I use for example :
Winock1.LocalIP I get a value such as
"4.9.97.70"
What can use or what can I do to get the value such as "152.175.235.164"
Thanks,
OmarSwan.
------------------
OmarSwan
Student
[email protected]
"Jesus Lives"
-
What the Winsock control is doing is getting your static IP address, which is the one set in the Network Properties (from Control Panel).
I tried all the examples of getting an IP addr that I had, and they all returned the network IP address.
------------------
"To the glory of God!"
-
It might have to do with the "Subnet Mask". If you go to a DOS prompt and type "ipconfig", you'll see this. Maybe that will put you in the right direction.
[This message has been edited by VirtuallyVB (edited 12-05-1999).]
-
I see the problem, but I don't know how to fix it! The Winsock (or whatever you are using) is returning the IP address of your ethernet adapted and not your modem! How you get around this I don't know.
------------------
"To the glory of God!"