Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Fido has a service where they allocate a public IP address for some fees. I have paid the fees and apparently they have allocated my phone a public IP address. In normal circumstances, I should be able to see the IP address in my device settings (status information), but it shows "IP address unavailable". Fido customer service is not able to help, saying that they only have instructions for the iPhone. For any other phone, I should contact the manufacturer.

Any idea how I could go about finding the public IP address that I am paying through my nose for?

Carrier: Fido in Canada.
Phone: Samsung Galaxy S2
OS: Android 4.0.3

share|improve this question
    
Update: I used ADB shell and netcfg to see the ip address of the interfaces: rmnet0 UP 25.44.197.87/24. It keeps changing if I restart the phone. But that IP is not reachable at least using ping. It comes from department of defence in the UK! –  Cocoro Cara Jul 4 '12 at 22:31
    
That IP will likely be internal to the carrier's network, they regularly use reserved IPs in situations where it "doesn't matter". You could try visiting ipchicken.com or a similar site from your phone. If that gives you the address of the carrier's gateway rather than your allocated IP I would assume they've screwed it up. You'd think they would know what it is since they've allocated it, even if it's dynamic. –  Matthew Read Jul 4 '12 at 22:44
1  
Related: android.stackexchange.com/questions/3715/… –  Al E. Jul 5 '12 at 17:43
    
I wonder if public IP address means something different to these carriers. It's infuriating, I've been in touch with Fido, Rogers, Samsung and there is no one who even knows how IP addresses are allocated. –  Cocoro Cara Jul 5 '12 at 21:12
add comment

5 Answers

You could always use the browser hit one of the many web pages that will tell you what your IP address is. WhatsMyIp being one such.

share|improve this answer
    
That was among the first things that I tried. The reported IP is Rogers gateway device. –  Cocoro Cara Jul 5 '12 at 14:44
add comment

Typically your carrier will be using NAT so you will have either a private RFC1918 address or an already allocated public IP.

A free app like Net Tools will tell you the IP assigned directly to your phone, so can you have IP communications with your carrier. (Net Tools will use netcfg as you have).

If you go to whatismyip.com you will likely find a different IP though because your connection is behind a NAT device. This is why you can't "ping" your phones IP.

share|improve this answer
add comment
up vote 1 down vote accepted

So reproducing the solution here for posterity: Need to change the default apn to either publicip.apn or vpn.com. All the other settings remain the same as the original default apn (which is fido-core.appl1.apn). Restart the device and voila!, the phone has a public ip. It can be discovered using adb and netcfg. @MartinSchröder, thanks a lot for pointing out Network Info II tool, its quite useful. Only thing is, after tethering the device, it reports an IPV6 rndis ip as the "internal" ip of the device.

share|improve this answer
    
Don't forget to "accept" your answer (when the timer expires). –  Al E. Jul 6 '12 at 18:21
add comment

Get Network Info II. It also gives you the name of your gateway.

share|improve this answer
    
Yes, but I need to find my phone's IP not the gateway. –  Cocoro Cara Jul 5 '12 at 22:34
    
@CocoroCara: Try the app. –  Martin Schröder Jul 6 '12 at 6:30
add comment

This open-source app might fit your needs, called External IP.

This simple application will show your IP addresses(default local & external).

share|improve this answer
    
Thanks for the link. The solution is to configure the correct APN to get the public ip. But I had to struggle to get this information out of Fido customer service. –  Cocoro Cara Jul 6 '12 at 22:10
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.