-2

In php I use this to get IP address which returns correctly,

<?php
$ip = getenv('REMOTE_ADDR');
echo $ip; 
?>

Now how do I go about replicating this in Classic ASP?

Julien Marrec
  • 11,605
  • 4
  • 46
  • 63
James
  • 27
  • 3
  • 3
    10 seconds on google (search for *asp get remote ip* ), returns [ASP ServerVariables](http://www.w3schools.com/asp/coll_servervariables.asp) - please try to do more research before asking. – Kraang Prime Jan 05 '17 at 07:16

1 Answers1

0

Very simple:

<%Response.Write(Request.ServerVariables("remote_addr"))%>
L. Vadim
  • 539
  • 3
  • 12