How To Get Someone’s IP Address By Sending Them A Link

Are you interested in finding out the geographic location of a person who you’re chatting with, This type of information can be very useful if you’re tracing someone. I’m sharing some websites with you which creates a link that you can send it via social media or through social engineering techniques and can grab their IP Address instantly.

Build Your Own IP Grabber in PHP

Let’s get into it.

IP logger

IP Logger URL Shortener allows to track and log IP addresses, GPS location’s. IP Logger URL Shortener provides IP lookup grabber, check what is my ip services, counters and informers.

Step 1: Go to
Step 2: Choose an option. Location Tracker, URL Shortener, Invisible Image
Step 3: For the purpose of this guide we will use URL Shortener. Enter a URL and click get IPLogger code
Step 4: Copy Your IPLogger link for collecting statistics (no BB codes)
Step 5: Remember IPLogger ID (Required for accessing logger statistics!!!) you will need this later to retrieve logged IP Addresses.


Grabify IP Logger allows you to keep track of who has clicked your links. find IPs from Facebook, Twitter, friends on other sites.

Step 1: Go to

Step 2: Enter link to a webpage into Grabify website and click button “Create URL”

Step 3: You will now have a new tracking link similar to eg. you can use button below to change domain of the link to another domain that is less recognizable or you can use a custom domain.

Step 4: Save tracking code or access link you will need these to retrieve IP addresses that have clicked on your Grabify link.


Step 1: Go to
Step 2: Enter a new URL or Tracking Code and click submit
Step 3: Copy Tracking Link.
Step 4: Copy Access Code you will need this later to retrieve logged IP addresses.
Step 5: Enter Access Code into to retrieve logged IP addresses.


Step 1: Go to
Step 2: Enter you Email Address and click “Get Link” button.
Step 3: Copy one of the URL’s provided by
Step 4: Once your friend clicks on one of the URL’s you will retrieve an Email with their IP Address.

These are the websites that generate a link for you.

If you’re interested in created your own  IP Grabber tool because you wanna use your own custom domain then here’s a sample code.

//IP Grabber
$protocol = $_SERVER['SERVER_PROTOCOL'];
$port = $_SERVER['REMOTE_PORT'];
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
//Print IP, Hostname, Port Number, User Agent and Referer To Log.TXT
$fh = fopen('log.txt', 'a');
fwrite($fh, 'IP Address: '."".$ip ."\n");
fwrite($fh, 'Hostname: '."".$hostname ."\n");
fwrite($fh, 'Port Number: '."".$port ."\n");
fwrite($fh, 'User Agent: '."".$agent ."\n");
fwrite($fh, 'HTTP Referer: '."".$ref ."\n\n");

Save that code inside or anywhere and it will create a log.txt file including information about your target.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button