Whats ur ip

Started on the old forum in November 2010 · view the original in the archive · old links redirect here

No replies · 823 views · started 16 years ago · 1 min read

wap-ruler Developer · 143 posts #1

just add this code to show a users ip address & port

<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...

ImPoSsIbLe iS nOthInG aS ImPoSsible ItSelF SaYs "I M POSSIBLE"

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close