Java Question IP address library numbers issue

giga

Well-Known Member
Licensed User
Longtime User
I have been working on an IP address library that displays IP address. It is a very simple library and displays the correct address when connected on WIFI.

But when on the 3G or 4G the address looks correctly format but is not what I see if I used ipchicken.com or whatsmyip.com.

Its completely different. example ipchicken shows 208.54.83.000 library shows 100.152.25.000
I am using inetaddress in java
Thanks as always,
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
You do not need to create a library for that. These features are already available in the Network library. The mobile provider can use NAT solution which means that multiple devices share the same external IP. Your device doesn't have a way other than contacting an external server to find the external IP.

You can see an example in the "no-ip" project.
 
Top