How to Get Someone's IP From Discord

Alright, so you must have been using Discord for quite a while now and suddenly you get a question in your mind – How to get someone’s IP from Discord? This question sounds really cool and it’s fun to try with others until someone does the same to you.

Finding someone’s IP address from Discord is easy. All you need to do is code a website that extracts the IP of all the users that visit the site. Host the website online and send the link to your friend on Discord. Then, you can either save your friend’s IP address in a database or just mail it to yourself.

If you know something about web development then you’ll be able to pull this job easily. However, do not collect someone else’s details without notifying them of the same. It’s unethical and should not be promoted. 

Everything mentioned below is only for educational purposes and you’ll be taught how to prevent others from doing the same to you. I won’t be discussing the topic practically. Although, some source code in languages such as Python will be mentioned in the post.

Note
Learn how to send colourful and attractive messages on Discord using this Ultimate Discord Text Formatting Guide.

In this article, I will be discussing IP addresses, how can someone else get your IP address using Discord, and the ways to prevent this from happening.


Can I Get Someone’s IP From Discord

Well if you’re talking about getting a user’s IP address directly from Discord, then I will have to say NO. Discord doesn’t disclose the IP addresses and other sensitive details of its users. There is no way you can get such user data from Discord as there is no such thing as Discord IP Logger or Discord IP Grabber.

But, if you mean using Discord to get someone’s IP address, then I might have a way for you.

Disclaimer
As mentioned above, this method is just for demonstration and should not be used on anyone without their consent.

How to Get Someone’s IP Through Discord

Now, coming to the primary crux of the post, below I have mentioned an idea that you can use to get anyone’s IP address.

When you surf the internet, your system sends a request to the server for the specific data (in any website’s case, it’s the webpage data). This request contains an address that is sent to the server. The address consists of the data that you require and your destination address, which is your IP address.

Now, to get someone’s IP, you have to create a simple web app that can record the IP address of the user that visits the website. Whenever someone surfs your website, you’ll get their IP address. 

Using this method, you’ll be getting the Public IP address of the user. Using that, you can get the location and ISP details of a user. Unlike any movie, you won’t be able to track the user down to their bedroom.


How to Create the Website

As I already told, if you are a student of web development then you’ll be able to pull this job easily. I have divided the process into certain parts that you can research and implement.

  1. Code the frontend
  2. Code the backend
  3. Host your website
  4. Send URL to your friend

Just 4 simple steps and you’re good to go.

1. Coding the Frontend

You can either code the UI of your website yourself or just download any free template from the internet. To be honest, the frontend isn’t of much use in this process. It’s just there to make your website look more like a Website.

WebFlow offers amazing HTML templates for free.

2. Coding the Backend

Here comes the logic part. It doesn’t matter which language you choose. All you need to do is create a function that gets the IP address of the users that visit your website. Then, you have to store the address into your database (if you know a bit of automation, you can mail the addresses to your mailbox easily).

I quickly searched for How to get a user’s IP address using Django (it is a web framework based on Python) and got some useful Stack Overflow links. You can do the same for any language or web framework.

Here is a code snippet that you can use to get someone’s IP in Django.

def get_client_ip(request):
    x_forwarded_for = request.META.get('HTTP_X_FORWARDED_FOR')
    if x_forwarded_for:
        ip = x_forwarded_for.split(',')[0]
    else:
        ip = request.META.get('REMOTE_ADDR')
    return ip

Or, if you are comfortable with JavaScript, you can do the same using the script mentioned below.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"> </script>
    <script> 
        // Add "https://ipinfo.io" statement 
        // this will communicate with the ipify servers  
        // in order to retrieve the IP address 
        $.get("https://ipinfo.io", function(response) { 
            alert(response.ip); 
        }, "json") 
        // "json" shows that data will be fetched in json format 
    </script>


// This script was originally published at Geeks For Geeks.
how to get someones IP from discord
Media Courtesy – Geeks For Geeks

After getting the IP address of the user, either store it in your database or just mail it to yourself.

Note
Did you know how to properly send spoiler messages on Discord?
Well, you should. Check out How to do Spoilers on Discord.

3. Hosting the Website

Time to make your website live. After you’ve successfully done the coding part on your local machine, it is time for you to host your website.

You can either buy hosting for your website or just use any free ones (Github Pages or Heroku) on the internet.

Note
Check out this guide if you want to build a website from scratch without coding skills.

Buy a domain name and connect your website to the domain. This is a tough job and you can find many guides on the internet, so I’m not going to mention it here.

4. Sending the URL for Testing

Launch Discord, open the chat box of your friend and send him the website link. As they open your website, their IP will be stored in your database. 


How to Protect Me from Phishing

There is only one way to prevent anyone from knowing your IP addresses in Discord, and that is “Do not click on any unknown link“. You do not know what a cracker might be up to while sending you the link. Make sure you think twice before opening the webpage as it might contain malicious scripts within it.

The stuff that we did was not harmful and doesn’t cause any issues on the client-side. But, many websites contain scripts that can download malicious files on your system. 

Also, try using VPNs while browsing the internet. This will make sure no one can get access to your real IP address or your location. Many VPNs also filter out spammy websites.

I recommend using Ivacy VPN to surf securely on the internet. If you want a free VPN service, you can use Turbo VPN for PC.

Also, learn how to secure your digital life in 7 days.


Frequently Asked Questions

Q: Can I get someone’s IP from Discord?

A: No, Discord doesn’t disclose private details of the user and you won’t get the IP address of other users from the platform.

Q: Can I locate someone using their IP?

A: The IP address that your devices use on the internet is Public IP. You can know the country or state details but getting a precise location with a Public IP is not possible.


Wrapping Up

So that was my take on How to get someone’s IP address from Discord. Honestly, there is no way you can know IP addresses of other users with Discord because there is no such thing as Discord IP logger or IP grabber. 

But you can develop a website that does the same and send it over to your friend on Discord.

Keep in mind that you should only try this method on other people with their consent. Feel free to comment on any such projects you’ve developed.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.