How to Get Someone’s IP From Discord in 4 Easy Steps

Everyone knows that every device on the internet has its own unique IP address assigned to it. Discord is an amazing chat platform that is widely used by gamers and corporate individuals alike. Many users want to know How to get someone’s IP from Discord, but most of their questions get lost in the masses.

To find someone’s IP from Discord, all you need to do is create a web application that stores IP address details of the users that visit it. Now, you have to send the link of that website to your friend on Discord. When he/she opens the link, you can either store the address in a database or mail it to yourself.

This is the most basic way to get someone’s IP address from Discord. This is an educational project and should not be used to carry out something that’s illegal. We (Geeky Slug) aren’t responsible for any actions performed by the users with this knowledge.

If you are a computer student, then you’ll be able to perform this project easily. All you have to do is learn a bit of web development and copy-paste some code. And, that’s what we are going to do today.

Also Read
If you are a member of some Fanclub server in Discord, then you should know How to do spoilers on Discord.

In this article, we’ll be sharing the easiest answer to How to get someone’s IP from Discord. We’ll also mention how you should create the app and how to protect yourself from such attacks.

Can I get Someone’s IP from Discord

Discord is a completely safe and secure service to use, that means, you won’t be able to get any user’s network details using Discord. Doing actions like this might cause some serious trouble for you. 

As Discord does not disclose sensitive information about users like their IP addresses, there is no way you will be able to get anyone’s IP address directly from Discord. However, we have a solution for this issue.

How to Get Someone’s IP From Discord

If you want to get someone’s IP from Discord, then what you have to do is create a website that extracts the IP address of anyone that visits it. Then, you can either save the addresses in a database or simply mail it to yourself.

We have divided this section into various parts covering the 4 basic steps of this project. These 4 steps are as follows.

  1. The Frontend
  2. The Backend
  3. The Hosting 
  4. The Execution

Again, this article is just for educational purposes and should not be used on anyone without their consent. Performing things like this are not legal and should not be practiced.

How to Create the Web App

Before creating the website, you need to understand the working of this setup. Whenever you browse any website, a request is sent by your router to the website’s servers. This request contains important information about your system’s IP, the data that is demanded, and more.

The web application that we’ll be creating will extract the IP address from a user’s request. Then, we can store that IP address in a database.

Note that this setup will only extract the public IP of the user. You’ll only be able to get specific information like the name of the Internet Service Provider, and the location of the user.

Sometimes, Discord launches itself on startup and consumes the memory of the system. This can make your system laggy. To prevent this from happening, check out this guide on How to stop Discord from opening on Startup permanently.

Now that we know the working of the web app, it is time to share the concept that you can use to develop the website.

1. The Frontend

Since only the backend of this website will be doing all the job, it doesn’t matter which frontend template or design you choose to show to the user. Just to ensure that the design of the website looks good, you can download free templates from websites like Bootstrap Made.

2. The Backend

Now, this is the most important part of the whole process. You must include the IP address extractor function in the backend of the program. Code the website so that the IP address of anyone who visits the home page of the website gets saved someplace safe.

You can code the backend of the website in any language that you prefer. For this post, we’ll be sharing with you the code snippets for JavaScript and Django (Python-based Web Framework). Just google “Get IP address of the user in Django/Javascript”, and Stack Overflow links will help you from there.

For a quick example, we’ve shown the IP address function in Django and Javascript.

Here’s the one 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]
        ip = request.META.get('REMOTE_ADDR')
    return ip

Here’s the one in Javascript.

<script src=""> </script>

        // Add "" statement  
        // this will communicate with the ipify servers   
        // in order to retrieve the IP address  
        $.get("", function(response) {  
        }, "json")  
        // "json" shows that data will be fetched in json format  

// This script was originally published at Geeks For Geeks.

This is the script that Geeks For Geeks used to create the web app in the screenshot below.

how to get someones ip from discord

If you are familiar with automation, you can automate the task of sending those IP addresses to your mailbox or anything of that sort.

3. The Hosting

After coding the website and finishing the development process, it is time that you host your website on the internet. If your website is simple and uses HTML, CSS, and Javascript, then we recommend that you should host your website on Github Pages. Check out this guide to deploy your website to Github Pages.

If you used any web framework like Django, then you should host your website on Heroku. They offer free cloud hosting for developers. Deploying websites built on a web framework can be a bit tricky for beginners and we recommend that you should code the website in Javascript.

Check out this video where Build With Python has demonstrated how to deploy a Django application on Heroku.

4. Execution

After making your site live on the internet, it is time to execute the task. Keep in mind that you should not try this on anyone without their consent. It is not legal and can bring some serious trouble to your plate.

Launch Discord, login to your account, and just send the link of your website to your friend. When he/she clicks on the link, their IP address will be stored in the database (you’ll have to program this yourself).

How to Protect Myself from Such Attacks

The thing that you just did is called Phishing (or a type of). Crackers can gain your sensitive information from such attacks. Therefore there is a need to educate users about phishing and social engineering.

The first step that you can take to prevent such things from happening is Do not Click on unknown links. You do not know what might be coming for you. In this project, we only extracted the IP address of a user, crackers can even get some sensitive information out of you if you’re not careful.

Also, do not share your details to anyone you don’t know. Make sure that you verify their authenticity before disclosing any personal details. Follow these steps and you won’t fall prey to such acts.

Final Words

So that was our take on How to get someone’s IP from Discord. We shared a concept which you can use to develop a website that does the same.

The concept is as follows. You have to create a website that stores the IP address of anyone who visits it. This is easy and anyone with a little experience in web development would be able to do it.

When the IP address is extracted, you can do anything with it. Either store it on a database or just mail it to yourself.

To protect yourself from such attacks, make sure that you do not click on unknown links and do not disclose your personal information to strangers.

About The Author

Leave a Comment

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

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

Scroll to Top