Android Question How to find my IP on the NO-IP site?

Oceaneml

Member
Licensed User
Longtime User
I use the NO-IP website and send several commands on an IP camera remotely.
Rather than ask every time my IP at the same time I send an order, I would get once at the beginning and then concatenate with my following commands.
So I tried using the following program: (Source EREL)

If FirstTime Then
Dim ni As NoIpValues
ni.Initialize
ni.host = "http://myadress.no-ip.biz"
ni.username = "myname"
ni.Password = "mypassword"
CallSubDelayed2(DynamicIp, "Start", ni)
End If


I do not know how to use DynamicIp. I stated in "string" but I have an error message "Invalid Double" and DynamicIp value is empty ?
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
Ok so, in line 33 of DynamicIP.bas, have you already tried to replace
B4X:
job.Download("http://api.exip.org/?call=ip")
by
B4X:
job.Download("http://www.icanhazip.com/")
(source)
 
Upvote 0

Oceaneml

Member
Licensed User
Longtime User
I just tried but it is similar.
The problem is that I do not know what to put as a variable in "Main" to concatenate the IP with my order.
There is something I did not understand.
By what variable goes my IP address "xx.xx.xx.xx"?
 
Upvote 0

Oceaneml

Member
Licensed User
Longtime User
In fact I am looking, from my smartphone, what is my dynamic IP address of my home PC, via the No-IP website...
 
Upvote 0

lemonisdead

Well-Known Member
Licensed User
Longtime User
In fact I am looking, from my smartphone, what is my dynamic IP address of my home PC, via the No-IP website...
Ok so that's not the right module to use as the DynamicIP.bas module kindly provided by Erel was to register the Android smartphone with a "No-IP" provider to be able to access the Android smartphone using a provider's subdomain.

If I well understand your need your PC is already linked to the provider's subdomain using the provider's own software. So what you only have to do is to access that subdomain using a httpUtils2 for example.

In fact:http://my_pc.noip.com will always be accessable using its URL even if the IP change

Am I wrong ?
 
Upvote 0

Oceaneml

Member
Licensed User
Longtime User
No, you're right.
But I can not find how to get my IP on the No-IP website.
I send many commands but I do not know how to just get the address to send other commands directly without going through the no-ip site.
Currently I use "http://myaccount.no-ip.biz:myport/myorder" and I would love to get my IP with a command like "? = Call ip"
 
Upvote 0
Top