Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Tags for this Thread

+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1

    How to display wifi IP address

    Subject should be pretty self explanatory. How do I display the IP address that I get when I'm on a WIFI network?

    Also, is there an app that would allow me to ping other IP addresses without having root access? I've looked/searched, but can't find the answers to these two.

  2. #2

    How to display wifi IP address

    Do you mean your internal IP or the external IP of the wi-fi network?
    for external, when connected to wi-fi on the G1, visit http://whatismyip.com

    for internal, and for your other question, I'm not sure...

  3. #3

    How to display wifi IP address

    No, specifically what IP address gets assigned to the phone itself, not the IP that the Internet sees.

    But thanks.

    I figured it might be under the "about this phone" like the MAC address, IMEI, etc.... I thought I also might find it under the "advanced" section of the wifi settings, but apparently that's only for configuring a static IP.

  4. #4

    How to display wifi IP address

    Just found how to get your internal IP:
    Settings >> Wireless Controls >> Wi-Fi Settings

    At the bottom under "Wi-Fi networks"
    tap the connection you are connected to

    It brings up a window with info like:
    Status
    Speed
    Signal Strength
    Security
    IP Address

  5. #5

    How to display wifi IP address

    Weird, I thought I tried that, I'll try again, thanks.

  6. #6

    How to display wifi IP address

    Yep, worked like a charm. Thanks

    Hmm, I wish it showed the default gateway too.

    I see that OscanO will do tcp port scans, but it would be nice if it would just do a ping.

  7. #7

    How to display wifi IP address

    In addition, to get it from an application, you can use the following piece of code:

    public String getLocalIpAddress() {
    try {
    for (Enumeration en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements() {
    NetworkInterface intf = en.nextElement();
    for (Enumeration enumIpAddr = intf.getInetAddresses(); enumIpAddr.hasMoreElements() {
    InetAddress inetAddress = enumIpAddr.nextElement();
    if (!inetAddress.isLoopbackAddress()) {
    return inetAddress.getHostAddress().toString();
    }
    }
    }
    } catch (SocketException ex) {
    Log.e(LOG_TAG, ex.toString());
    }
    return null;
    }

    See:
    http://www.droidnova.com/get-the-ip-address-of-your-device,304.html

  8. #8

    How to display wifi IP address

    Thanks guy !

  9. #9

    How to display wifi IP address

    and very Thanks also, this code is very useful

  10. #10
    kris c's Avatar
    Member

    Status
    Offline
    Join Date
    Sep 2009
    Posts
    79
    Downloads
    0
    Uploads
    0

    How to display wifi IP address

    There's an app available called Network Info II that provides internal, external ip, MAC, SSID, Gateway, DNS Servers, etc and a bunch of other information.

    The other network app I use is Network Mapper that will scan the network you are connected too.

    I've found both useful resolving friends' network issues.

 

 

Quick Reply Quick Reply

Click here to log in


What color is our footer?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Wifi Mac Address when disabled
    By Rachel..MJ rocks :D in forum Discuss Google Android
    Replies: 1
    Last Post: 05-17-2011, 01:27 PM
  2. Replies: 0
    Last Post: 02-01-2011, 04:21 AM
  3. Replies: 0
    Last Post: 09-09-2009, 03:06 AM
  4. Replies: 0
    Last Post: 07-13-2009, 04:18 PM
  5. Display Your Public IP Address in the Shell Prompt [Terminal Tip]
    By EmptyNest in forum Electronic and Computer News
    Replies: 0
    Last Post: 04-01-2009, 10:01 PM

Bookmarks

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •