PDA

Click to See Complete Forum and Search --> : Problem with finding Find IP Address ??


omarswan
Dec 3rd, 1999, 12:42 PM
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
omarswan@yahoo.com

"Jesus Lives"

vbsquare
Dec 3rd, 1999, 05:16 PM
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!"

Dec 5th, 1999, 11:02 AM
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).]

vbsquare
Dec 6th, 1999, 12:24 AM
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!"