What is my remote IP address

joedarock

Member
Licensed User
Longtime User
Is there a way to read my current remote IP address, the address on the internet side of the network path? I tried 'GetMyIP' from the 'ServerSocket' object, but that returns the NAT'd internal address provided to my phone by my provider. Third-party apps such as "What's My Remote IP?" can do this, but I want B4A to get it.

Joe
 

Merlot2309

Active Member
Licensed User
Longtime User
Joe,

When you install B4A - Bridge on your phone and run it, it should give the IP address of your router.
Not sure if this is what you are looking for ........

Helen
 
Upvote 0

joedarock

Member
Licensed User
Longtime User
Thanks Helen,

Actually, that's the NAT address I was referring to, ie, the local address provided by the WiFi router or the mobile data service provider. What I need is the address on the other side of the router (the internet address) and I want to read it from B4A, not another app.

Joe
 
Upvote 0

joedarock

Member
Licensed User
Longtime User
I'll answer my own question and consider this case closed:

Do a request to this URL "http://www.whatismyip.com/automation/n09230945.asp". What comes back is your IP address, in plain text with no HTML formatting. Got this from the cover page of Erel's "B4A Bridge" app.

Thanks Helen, for making me actually read the cover page of the app.

Joe
 
Upvote 0

Cynikal

Member
Licensed User
Longtime User
as joe said, which is exactly as I was going to suggest doing.


Do a simple IP php script on a remote server, and call it.
 
Upvote 0

enrique1

Member
Licensed User
Longtime User
I'll answer my own question and consider this case closed:

Do a request to this URL "http://www.whatismyip.com/automation/n09230945.asp". What comes back is your IP address, in plain text with no HTML formatting. Got this from the cover page of Erel's "B4A Bridge" app.

Thanks Helen, for making me actually read the cover page of the app.

Joe

Very usefull!!! The new direction is:
http://automation.whatismyip.com/n09230945.asp
:sign0087:
 
Upvote 0
Top