How can I retrieve the IP adress of my computer ?
Thanks
ZIL
Printable View
How can I retrieve the IP adress of my computer ?
Thanks
ZIL
here is a little script to retrive your IP.
http://www.linkprojects.net/ip.asp -- View IP address.
http://www.linkprojects.net/ip.zip -- Download the code.
Sorry but I forgot to mention that I want to do it within Visual Basic 6.0
ZIL
Ok, sorry. I cannot help you there. :rolleyes:
To find your IP address, Put a Winsock control on your form. Then use the code
X = Winsock1.LocalIP
'Your IP is stored in the Variable X
:p :p :p
This forum here is for VB Script and ASP. There is a general VB forum here too.
Oh you know that ASP IP getter? It doesnt work!!! It returns my IP like: 24.4.252.9* which is ABSOLUTLY WRONG! but it did get the 24 right.
That is wierd, it has always worked for me. Maybe your IP address has changed. the code is very simple really so there is not much that can go wrong.
Thats all there is to it!Code:<% = Request.ServerVariables("REMOTE_HOST") %>