Skip to content

A solution to find IPv4 ap0, wlan0 IP Address without connecting into a WiFi Network

Notifications You must be signed in to change notification settings

ShuhaibNC/IPFinder-Android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IPF - IP Finder

IPF (IP Finder) is a lightweight Android application that displays the IPv4 address of ap0 or wlan0 interfaces without requiring a WiFi connection.

📱 Features

  • Shows local IPv4 address of ap0 (Hotspot) and wlan0 (WiFi) interfaces.
  • Does not require an active internet or WiFi connection.
  • Copy IP address to clipboard with a single tap.
  • Built-in refresh button to update IP info.
  • Simple, fast, and effective!

🔧 Use Case

This app is especially useful for developers, testers, or tech enthusiasts who:

  • Run servers on Android (like HTTP file servers).
  • Need local IP for ADB over WiFi or similar.
  • Want to debug or view local network interfaces quickly.

⚙️ How It Works

The app queries available NetworkInterfaces, then checks for wlan0 or ap0. If an active IPv4 address is present, it displays it.

if (networkInterface.getName().equalsIgnoreCase("wlan0") ||
    networkInterface.getName().equalsIgnoreCase("ap0")) {
    // Fetch and return the IPv4 address
}

If no IP is available, it shows 127.0.0.1 with a warning.

📦 AIDE Support

You can directly open this project in AIDE, the Android IDE. Just:

  1. Install AIDE.
  2. Clone this repo.
  3. Open MainActivity.java and run the app.

🖥️ For Termux Users

If you're using Termux, you probably don’t need this app. Just run:

ifconfig

🛠️ Build Requirements

  • Android SDK (API level 16+ recommended)
  • AIDE or Android Studio
  • No extra libraries or permissions required

🚫 Limitations

  • Might not work on all devices or ROMs if the system restricts access to network interfaces.
  • Only shows IP for ap0 or wlan0, not other interfaces.

📃 License

This project is open-source. Do whatever you want with it. Attribution appreciated but not required.

About

A solution to find IPv4 ap0, wlan0 IP Address without connecting into a WiFi Network

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages