PDA

Click to See Complete Forum and Search --> : Getting the ip address


Dec 19th, 2000, 10:47 AM
Hi everybody.

If I have a computer connected to internet via a dial up connection,
Somebody knows how to get that computer ip address from within my vb app?
Note the vb app is running on the same computer I have connected to internet via dial up.


I will greatly appreciate any code example, link to related info, etc.

guillermo_olvera@hotmail.com

kovan
Dec 19th, 2000, 12:35 PM
UserIP = Request.ServerVariables("remote_addr")

Dec 19th, 2000, 02:06 PM
thank you very much,
but I am looking for the Visual Basic code to get the computer ip address on wich is the VB application running.
Do you know how?

kovan
Dec 20th, 2000, 06:45 AM
check out planetsourcecode.com

Dec 20th, 2000, 10:03 AM
Thanks a lot Kovan, I will follow the link right now!
Thanks again!

ccoder
Dec 22nd, 2000, 09:03 AM
Once you have dialed into your ISP and been assigned an address, I would think that Winsock.LocalIP would return the IP address.

Dec 22nd, 2000, 09:54 AM
Thanks a lot, now i am trying this.