FYI: Yet another way to get the client IP address... 
Author Message
 FYI: Yet another way to get the client IP address...

The subject line says it all ;-)...

===httpGetIpAddress.vbs===

url = "http://myserver/mysite/remote_addr.asp"

with createobject("microsoft.xmlhttp")
  .open "get",url,false
  .send
  ipaddress = .responsexml.text
end with

msgbox ipaddress

===remote_addr.asp===

<%
  With Response
    .ContentType = "text/xml"
    .Write "<root>"
    .Write "<ipaddress>"
    .Write Request.ServerVariables("REMOTE_ADDR")
    .Write "</ipaddress>"
    .Write "</root>"
  End With
%>

--
Michael Harris
Microsoft.MVP.Scripting
--

Please do not email questions - post them to the newsgroup instead.
--



Mon, 01 Sep 2003 01:38:03 GMT  
 FYI: Yet another way to get the client IP address...


Fri, 19 Jun 1992 00:00:00 GMT  
 FYI: Yet another way to get the client IP address...
Anyone got time to make a jScript version of this?
I can't seem to get it to work,
Thanks
Jeff


Quote:
> The subject line says it all ;-)...

> ===httpGetIpAddress.vbs===

> url = "http://myserver/mysite/remote_addr.asp"

> with createobject("microsoft.xmlhttp")
>   .open "get",url,false
>   .send
>   ipaddress = .responsexml.text
> end with

> msgbox ipaddress

> ===remote_addr.asp===

> <%
>   With Response
>     .ContentType = "text/xml"
>     .Write "<root>"
>     .Write "<ipaddress>"
>     .Write Request.ServerVariables("REMOTE_ADDR")
>     .Write "</ipaddress>"
>     .Write "</root>"
>   End With
> %>

> --
> Michael Harris
> Microsoft.MVP.Scripting
> --

> Please do not email questions - post them to the newsgroup instead.
> --



Mon, 01 Sep 2003 14:08:37 GMT  
 FYI: Yet another way to get the client IP address...
===httpGetIpAddress.js===

url = "http://www.server.com/remote_addrJS.asp"

with(new ActiveXObject("microsoft.xmlhttp")){
 Open("get",url,false)
 Send()
 WScript.Echo(ipaddress = ResponseXML.text)

Quote:
}

===remote_addrJS.asp===


<%
  with(Response){
    ContentType = "text/xml"
    Write("<root>")
    Write("<ipaddress>")
    Write(Request.ServerVariables("REMOTE_ADDR"))
    Write("</ipaddress>")
    Write("</root>")
  }
%>

Quote:
> I can't seem to get it to work,
> Thanks
> Jeff



Tue, 02 Sep 2003 03:01:43 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Getting Client's IP Address on Client Side

2. Getting Client IP address

3. Obtaining client IP address client side

4. Obtaining client IP address client side

5. Obtaining client IP address client side

6. getting IP address

7. getting ip address

8. Getting Local IP address running a VBS script locally

9. Getting IP Address using VBScript

10. Getting IP Address

11. Getting Ip address

12. Getting IP Address of a user on a network

 

 
Powered by phpBB® Forum Software