This is the real ip and the only ip address that is known to the device.
If you want the external ip address then you need to use a web service that will return it.
Example:
B4X:
Sub GetExternalIp As ResumableSub
Dim j As HttpJob
j.Initialize("", Me)
j.Download("https://www.myexternalip.com/raw")
Wait For (j) JobDone(j As HttpJob)
Dim res As String = ""
If j.Success Then
res = j.GetString
End If
j.Release
Return res
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.