Whats ur ip

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Whats ur ip

    just add this code to show a users ip address & port
    Code:
    <html>
    <body>
    <b>Your IP address is:</b>
    <?php
     
    $ip=$_SERVER['REMOTE_ADDR'];
    echo "$ip"; 
    ?>
    <b>Name server:</b>
    <?php
     
    $ip=$_SERVER['REMOTE_ADDR'];
    $ip2=$_SERVER['HTTP_REMOTE_HOST'];
    if ($ip2=="")
     echo "$ip"; 
    else
      echo "$ip1";  
    ?>
    <b>Remote port:</b>
    <?php
     
    $port=$_SERVER['REMOTE_PORT'];
    echo "$port"; 
    ?>
    <b>Browser:</b>
    <?php
       $browser=$_SERVER['HTTP_USER_AGENT'];
    echo "$browser"; 
    ?>
    Added after 34 minutes:

    thanks big br0 to giving thanks 4 my sharings...
    Last edited by wap-ruler; 08.11.10, 22:09.
    ImPoSsIbLe iS nOthInG aS ImPoSsible ItSelF SaYs "I M POSSIBLE"
Working...
X