# Tracing IP of Facebook Friends

**URL:** <https://onehack.st/t/tracing-ip-of-facebook-friends/55274>\
**Category:** Tutorials & Methods\
**Tags:** tips-tricks, social-media\
**Created:** [September 3, 2019, 7:49pm UTC](https://onehack.st/t/tracing-ip-of-facebook-friends/55274 "2019-09-03T19:49:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheJoker](https://onehack.st/user_avatar/onehack.st/thejoker/32/22660_2.png) [@TheJoker](https://onehack.st/u/TheJoker)\
**Post date:** [September 3, 2019, 7:49pm UTC](https://onehack.st/t/tracing-ip-of-facebook-friends/55274/1 "2019-09-03T19:49:20Z")

</div>

![Trace-IP-of-Facebok-Friends](https://onehack.st/uploads/default/original/3X/2/5/25359eabffde501872b30fc66dfe3d4cad6b6534.png)

**Have you ever tried to trace your fb friends? No, here we are. Now you can trace your friends by tracing IP of Facebook friends and know from where they’re online.**

Tracing an IP address seems like a pro hacker thing what you would see in different movies too that how a hacker traces the people and find their physical location by just sitting on his laptop. Now you can do it too just like the pro hackers. Here in this article you will learn how to trace IP of facebook friends.

The method we’re going to show only reveals information about the internet service provider, city and state. To obtain revealing information, you’d need to employ tactics of dubious legality or get law enforcement involved.

### Tracing IP of Facebook Friends Tutorial

Here’s complete step by step tutorial on tracing IP of facebook friends.

- Step 1 (Creating PHP File)
- Create a new text document and edit it.
- Write the following PHP code inside it:

> \<?php $ip = $\_SERVER[‘REMOTE\_ADDR’]; $dt = date(“l dS \of F Y h:i:s A”); $file=fopen(“ip\_log.txt”,”a”); $data = $ip.’ ‘.$dt.”\n”; fwrite($file, $data); fclose($file); header( ‘Location: 1Hack.us’) ; ?\>

- Replace ‘[1Hack.us](http://1Hack.us)’ with any other URL.
- Save that as : anyname.php.

#### Next step is to find a hosting to host your script.

You can find any free hosting to host this script or you can buy one for you.

- Choose a right domain name e.g : [yourdomain.com](http://yourdomain.com).
- Now attach the domain to the hosting.
- Once you have hosting and domain ready, just sign in to your hosting server and go to the **File Manager** and open the **public\_html** directory.
- Click upload button to upload the PHP script you created before.
- Once it’s uploaded, set the file permissions to **777.**

#### Here comes to main step of tracing IP of facebook friends.

It’s time to trace IP of facebook friends using the hosted script.

- Goto your domain that you just created. i.e: [yourdomain.com](http://yourdomain.com).
- You will find your uploaded PHP file here. Just **Copy Address Link** of this file by right clicking. It will be like **[http://yourdomain.com/anyname.php](http://yourdomain.com/anyname.php)**.
- It’s time to spread this link to your facebook friends. Once they click on the link. You will receive a file in your hosting account named as **ip\_log.txt**. Just open it to see the IP address of all your friends who clicked that link.
- All Done! Now goto [ip-address.com](http://ip-address.com) and enter the IP you find in **ip\_log.txt**. Once you enter, you will see the location of that friend.

_ **That’s all. Hope you have learned how you can trace IP of facebook friends of yours.** _

---

<div class="post-metadata">

**Author:** ![Sahil\_Rana](https://onehack.st/user_avatar/onehack.st/sahil_rana/32/14491_2.png) [@Sahil\_Rana](https://onehack.st/u/Sahil_Rana)\
**Post date:** [September 5, 2019, 9:23am UTC](https://onehack.st/t/tracing-ip-of-facebook-friends/55274/2 "2019-09-05T09:23:37Z")

</div>

not working for me
