Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

Description

Adds a way to get the user's IP address by sending a web request and extracting the result.

How to use the extension

This extension gets the user's public IP address via a web request to ipify.

⚠️ Important: Before storing any IP address in a database, it is strongly recommended to hash it. This helps protect user privacy and prevents unauthorized access to raw IP addresses. ⚠️

Instructions (how to use it)

Actions

  • Call IP_Adress::GetIP to fetch the IP.

Conditions

  • Use IP Adress is ready to check if the IP has been retrieved.
  • Use Failed to get the user's IP Adress to check if the action has failed.

Expressions

  • Use IP_Adress::Adress() to get the parsed IP as a string.
  • Use IP_Adress::Error() to get the error message if an error occurred.

Example:
When combined with a database system such as Firebase Realtime Database, this extension can be used to implement IP-based bans. This allows developers to prevent users from rejoining a multiplayer lobby after engaging in fraudulent or disruptive behavior, ensuring a safer and more secure gameplay environment.

Checklist

  • I've followed all of the best practices.
  • I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
  • I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.

What tier of review do you aim for your extension?

Community (Unreviewed)

Example file

IPRetrieverExample.zip

Extension file

IPRetrieverExtension.zip


Extension by @ReaverZx

You can update the extension on this "Pull Request" by commenting the update command: in the comment field, type !update, then drag and drop a zip file with your extension file in the commenting field, like how you initially submitted the extension. It should look like this:

!update [MyExtension.zip](https://github.com/GDevelopApp/GDevelop-extensions/files/12709661/MyExtension.zip)

It can take a few seconds for the file to fully upload and show as the above. Once it is like shown above, click "Comment" and let the bot do the rest!

@github-actions github-actions bot added the ✨ New extension A new extension label Aug 24, 2025
@github-actions github-actions bot requested a review from a team as a code owner August 24, 2025 10:51
@github-actions github-actions bot added the ✨ New extension A new extension label Aug 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ New extension A new extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant