Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: How do you find your external ip address on Android?

2,359 views
Skip to first unread message

Alan Meyer

unread,
Oct 30, 2015, 12:03:31 AM10/30/15
to
On 10/29/2015 11:34 PM, Oleg Smirnov wrote:
> How do you find your external ip address on Android?
>
> On Linux I just type "curl http://myip.dnsomatic.com" or
> any of a number of other commands or web sites (e.g.,
> inxi -i, http://whatismyipaddress.com, etc.).
>
> What is the best way to find your external IP address
> on Android?
>

It looks like you answered your own question. I started WiFi, opened a
browser, and went to http://whatismyipaddress.com. My IP address appeared.

Did I miss something?

Alan

Whiskers

unread,
Oct 30, 2015, 10:58:01 AM10/30/15
to
On 2015-10-30, Oleg Smirnov <ve...@gde.ru> wrote:
> How do you find your external ip address on Android?
>
> On Linux I just type "curl http://myip.dnsomatic.com" or
> any of a number of other commands or web sites (e.g.,
> inxi -i, http://whatismyipaddress.com, etc.).
>
> What is the best way to find your external IP address
> on Android?

Try looking for "what is my ip" in the Google Play app store.

--
-- ^^^^^^^^^^
-- Whiskers
-- ~~~~~~~~~~

chris

unread,
Oct 30, 2015, 11:30:55 AM10/30/15
to
On 30/10/2015 03:34, Oleg Smirnov wrote:
> How do you find your external ip address on Android?
>
> On Linux I just type "curl http://myip.dnsomatic.com" or
> any of a number of other commands or web sites (e.g.,
> inxi -i, http://whatismyipaddress.com, etc.).
>
> What is the best way to find your external IP address
> on Android?

Settings -> About phone -> Status

Roger Mills

unread,
Oct 30, 2015, 11:39:37 AM10/30/15
to
That may work when connected via 3G/4G - I don't know.

But if you're using WiFi to connect to (say) your home router, this
gives the local (NAT'd) IP address - as allocated by the router - not
the external IP address.
--
Cheers,
Roger
____________
Please reply to Newsgroup. Whilst email address is valid, it is seldom
checked.

Chris

unread,
Oct 30, 2015, 2:19:14 PM10/30/15
to
Roger Mills <watt....@gmail.com> Wrote in message:
> On 30/10/2015 15:30, chris wrote:
>> On 30/10/2015 03:34, Oleg Smirnov wrote:
>>> How do you find your external ip address on Android?
>>>
>>> On Linux I just type "curl http://myip.dnsomatic.com" or
>>> any of a number of other commands or web sites (e.g.,
>>> inxi -i, http://whatismyipaddress.com, etc.).
>>>
>>> What is the best way to find your external IP address
>>> on Android?
>>
>> Settings -> About phone -> Status
>>
>
> That may work when connected via 3G/4G - I don't know.
>
> But if you're using WiFi to connect to (say) your home router, this
> gives the local (NAT'd) IP address - as allocated by the router - not
> the external IP address.

You're right. Didn't even work for 3G, got a 10.xx ip


----Android NewsGroup Reader----
http://usenet.sinaapp.com/

Bert

unread,
Oct 30, 2015, 4:01:54 PM10/30/15
to
In news:n10c6t$sni$1...@dont-email.me Chris <ithi...@gmail.com> wrote:

> You're right. Didn't even work for 3G, got a 10.xx ip

Don't know what phone or Android version you're running, but if you have
WiFi turned on, it (probably) won't make a data connection over the cell
radio.

That's the way my Nexus 6 on Android OS 5.1.1 works.

I have no idea if the external IP address you get when you're on the
cell network is stable, or varies depending on where you are, or when
you make the connection.

--
be...@iphouse.com St. Paul, MN

Mike Yetto

unread,
Oct 30, 2015, 6:59:56 PM10/30/15
to
While walking through the streets of Soho in the rain
Oleg Smirnov <ve...@gde.ru> wrote...
> How do you find your external ip address on Android?

> On Linux I just type "curl http://myip.dnsomatic.com" or
> any of a number of other commands or web sites (e.g.,
> inxi -i, http://whatismyipaddress.com, etc.).

> What is the best way to find your external IP address
> on Android?

An app named Network Info II will give you what you want.

Mike "it will take two taps, not just one" Yetto
--
"I believe that clear-minded people should remain two things throughout
their lifetimes: curious and teachable."
- Roger Ebert

Nomen Nescio

unread,
Oct 30, 2015, 8:16:36 PM10/30/15
to
> I could use the CM Browser to save a shortcut browser file pointing
> to http://whatismyipaddress.com, but I'd rather just have an app
> that tells me the IP address (like "inxi -i" does on Linux, for
> example).
>
> I also want to find the routing table (route -n), so I was hoping
> there is a way to just hit a single button, and the IP address would
> pop up like curl does on Linux.

I'm not sure what will give you the routing table. This app will give
you your external IP along with some GSM info:

Network Info II:

package:/data/app/aws.apps.networkInfoIi-1/base.apk=aws.apps.networkInfoIi

This one will also give you your external IP, and has some other DNS
lookup features:

GTech Net Tools:

package:/data/app/com.glasertech.android.nettools-1/base.apk=com.glasertech.android.nettools

I think those apps are proprietary. They do not exist in a proper
repo like f-droid.

Mike Yetto

unread,
Oct 31, 2015, 1:04:57 AM10/31/15
to
While walking through the streets of Soho in the rain
Oleg Smirnov <ve...@gde.ru> wrote...
> On Sat, 31 Oct 2015 01:11:26 +0100, Nomen Nescio wrote:

>> I'm not sure what will give you the routing table. This app will give
>> you your external IP along with some GSM info:
>>
>> Network Info II:
>>
>> package:/data/app/aws.apps.networkInfoIi-1/base.apk=aws.apps.networkInfoIi
>>
>> This one will also give you your external IP, and has some other DNS
>> lookup features:
>>
>> GTech Net Tools:
>>
>> package:/data/app/com.glasertech.android.nettools-1/base.apk=com.glasertech.android.nettools
>>
>> I think those apps are proprietary. They do not exist in a proper
>> repo like f-droid.

> With those keywords, I found on Google Play ...

> Network Info II, by Alexandros Schillings:
> https://play.google.com/store/apps/details?id=aws.apps.networkInfoIi
> But, with the phone on WiFi, it only gave the internal LAN 192.168.x.x IP address,
> not the external public IP address.

You didn't try all of the options. Tap on "IP" for more data. You
can even see BlueTooth and location data.

Mike "there's more as well" Yetto
--
"The patient, treated on the fashionable theory, sometimes gets well in
spite of the medicine."
- Thomas Jefferson

Chris

unread,
Oct 31, 2015, 6:41:16 AM10/31/15
to
Bert <be...@iphouse.com> Wrote in message:
> In news:n10c6t$sni$1...@dont-email.me Chris <ithi...@gmail.com> wrote:
>
>> You're right. Didn't even work for 3G, got a 10.xx ip
>
> Don't know what phone or Android version you're running, but if you have
> WiFi turned on, it (probably) won't make a data connection over the cell
> radio.

The point is that phones will rarely have direct access to the
internet. It's either via a WiFi router or cell network. Either
way your phone's ip will almost always be a local, not global,
address assigned by the router or cell network E.g 10.xx,
192.xx

> That's the way my Nexus 6 on Android OS 5.1.1 works.
>
> I have no idea if the external IP address you get when you're on the
> cell network is stable, or varies depending on where you are, or when
> you make the connection.

I doubt it.

Roger Mills

unread,
Oct 31, 2015, 9:41:47 AM10/31/15
to
On 31/10/2015 12:43, Oleg Smirnov wrote:
> Thanks for all the answer.
> I summarized the results (see below) but I have one question.
> What is that "package:/data/app" stuff?
> I couldn't make any sense (or figure out the use) for it?
>
> Network Info for Android, by WarCry:
> https://play.google.com/store/apps/details?id=com.warcry.networkinfoforandroid
> package:/data/app/aws.apps.networkInfoIi-1/base.apk=aws.apps.networkInfoIi

It's just part of the link which didn't wrap properly.

But you don't need to follow the link on your PC anyway. Just open
Google Play on your phone and search for an app called Network Info. It
will display several similarly named apps. Select and install the one by
WarCry.

Anonymous

unread,
Oct 31, 2015, 3:35:03 PM10/31/15
to
> What is that "package:/data/app" stuff?
> I couldn't make any sense (or figure out the use) for it?

It's copy/pasted output from this command:

$ adb shell 'pm list packages -f'

which lists my phones packages (on my desktop).

Jack Ryan

unread,
Nov 2, 2015, 12:10:52 AM11/2/15
to
> > $ adb shell 'pm list packages -f'
> >
> > which lists my phones packages (on my desktop).
>
> To run that command on my unlocked phone, I installed a terminal:
> Terminal Emulator for Android, by Jack Palevich
> https://play.google.com/store/apps/details?id=jackpal.androidterm
>
> And then ran the adb command:
> http://i.imgur.com/p4rxKbx.gif
>
> $ adb shell 'pm list package -f'
> * daemon not running. starting it now on port 5038 *
> * daemon started successfully *
> error: device not found
>
> What did I do wrong?

I didn't even realize it could run directly on the phone. I run adb
on the linux desktop that the phone is usb-connected to. It's a way
to access the phone from the desktop.

Jack Ryan

unread,
Nov 5, 2015, 5:34:06 PM11/5/15
to
> Can you give me a hint how to use android debug bridge from the
> desktop? Just one example would help.

On the phone, you have to enable debug mode. This option moves around
from one version to the next. For me it's in a non-intuitive location
(settings > applications > development > usb debugging)

Connect the phone to the desktop (USB cable).

Install the Android SDK if you don't have it already. Or you may be
able to find the adb tool packaged on its own, not sure.

As root on your linux desktop, run "adb start-server".

As a normal user on your linux desktop, run "adb devices" to verify
that the phone is detected. If you only see "List of devices
attached" and nothing else, it means your phone is not connected or
found. Otherwise, you should see a 2nd line with a unique identifier
for your phone. You only need to know that unique id if you have
multiple phones connected at once. Otherwise all adb commands will be
sent to the one and only device it finds.

At this point, you should be able to use adb commands to do various
things like install or uninstall apps. Here are a few:

list devices: adb devices
list apps apks: adb shell ls /system/app
list apps: adb shell 'pm list packages -f'
list libraries: adb shell 'pm list libraries'
copy an app/file from the device: adb pull /system/app/foo.apk /tmp/
install an app to the VM: adb install foo.apk

0 new messages