Hack Forums
Run IPGeoLocation on Termux - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4)
+----- Forum: Hacking Tutorials (https://hackforums.net/forumdisplay.php?fid=47)
+----- Thread: Run IPGeoLocation on Termux (/showthread.php?tid=6316044)



Run IPGeoLocation on Termux - R5N3T - Dec 17, 2025

hello guys,
as the title suggests, this is perfect for those of you who want to find out an IP address location using an Android device. Some of you may already be familiar with this, but for those who are not, the following explanation will help you understand it more clearly. Alright, let’s get straight to it, what you need is the Termux application on Android, which can be downloaded from the Google Play Store.


To ensure the packages in Termux are up to date, command :
Code
pkg update && pkg upgrade

After that, we make sure Git and Python are installed. If you have already installed them, it means you don’t need to perform this step again, command :
Code
pkg install git python

After completing the steps above, we now proceed to install IPGeoLocation, command :
Code
git clone https://github.com/maldevel/IPGeoLocation

Once the IPGeoLocation installation is complete, the next step is to enter the IPGeoLocation folder, command :
Code
cd IPGeoLocation

And after entering the folder, we need to grant permission to this application first. Command :
Code
chmod 775 ipgeolocation.py

Next, we install the modules for the IPGeoLocation application, command :
Code
pip install -r requirements.txt

The installation is complete, which means you have successfully installed the IPGeoLocation tool on Termux. To check if the tool works, let’s try checking an IP, command :
Code
python ipgeolocation.py -m
{The command above is used to check our own IP}

If successful, the output will appear as shown below :
result (Click to View)

You can also execute other commands with this tool. Here are the commands :
EXAMPLE Wrote:✪ Retrieve your IP Geolocation
./ip2geolocation.py -m

✪ Retrieve IP Geolocation
./ip2geolocation.py -t x.x.x.x

✪ Retrieve Domain Geolocation
./ip2geolocation.py -t example.com

✪ Do not save .log files
./ip2geolocation.py -t example.com --nolog

✪ Custom User Agent string
./ip2geolocation.py -t x.x.x.x -u "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko"

✪ Using Proxy
./ip2geolocation.py -t x.x.x.x -x http://127.0.0.1:8080

✪ Using random Proxy
./ip2geolocation.py -t x.x.x.x -X /path/to/proxies/filename.txt

Pick User-Agent string randomly
./ip2geolocation.py -t x.x.x.x -U /path/to/user/agent/strings/filename.txt

✪ Retrieve IP geolocation and open location in Google maps with default browser
./ip2geolocation.py -t x.x.x.x -g

✪ Export results to CSV file
./ip2geolocation.py -t x.x.x.x --csv /path/to/results.csv

✪ Export results to XML file
./ip2geolocation.py -t x.x.x.x --xml /path/to/results.xml

✪ Export results to TXT file
./ip2geolocation.py -t x.x.x.x -e /path/to/results.txt

✪ Retrieve IP Geolocation for many targets
./ip2geolocation.py -T /path/to/targets/targets.txt

✪ Retrieve IP Geolocation for many targets and export results to xml
./ip2geolocation.py -T /path/to/targets/targets.txt --xml /path/to/results.xml

✪ Do not print results to terminal
./ip2geolocation.py -m -e /path/to/results.txt --noprint

That’s all for how to run the IPGeoLocation tool on Termux. I apologize for any shortcomings, and I hope this is helpful