Whats my IP?

I remember the 'bridging' days of Halo 2 which alot of us were forced to do to avoid modders.
One of the biggest questions in those days was, "Whats your IP?"
Here is a small leftover script for the good old days.

What is my IP address?
An IP address (Internet Protocol Address) is a logical address of a network adapter.
The IP address is unique and identifies computers on a network.
An IP address can be private, for use on a LAN, or public, for use on the Internet or other WAN.

If you would like to use this script on your own website,
the code is quite simple if you understand the GD library.

<?php
  $dstImage
= @imageCreateTrueColor(260, 240) or die ('failed iCTC');
 
imagesavealpha($dstImage, true);
 
$srcImage = @imagecreatefrompng('ipman.png');
 
$transp = imagecolorallocatealpha($dstImage, 0, 0, 0, 127);
 
$white imagecolorallocate($dstImage,255,255,255);
 
imagefill($dstImage, 0, 0, $transp);
 
imageCopyResampled($dstImage, $srcImage, 0, 0, 0, 0, 260, 240, 260, 240) or die ('failed iCR');
 
$theviewersip  = " Your IP is  $_SERVER[REMOTE_ADDR]";
 
Imagestring($dstImage,10,10,12,$theviewersip,$white);
 
header("Content-type:  image/png");imagepng($dstImage);
?>

Although the script itself is free, the attached image being used
was created by Im Tribute and any use of the image itself
is prohibited without the visible watermark.
Feel free to edit the code and utilize your own image.

File Attachment: