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

Discussion in 'Android Questions' started by Oceaneml, Feb 2, 2015.

  1. Oceaneml

    Oceaneml Member Licensed 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 ?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    I don't understand the above code. What is DynamicIp? It is probably a module that you are missing in your project.
     
  3. lemonisdead

    lemonisdead Well-Known Member Licensed User

  4. Oceaneml

    Oceaneml Member Licensed User

    Yes, That's it
     
  5. lemonisdead

    lemonisdead Well-Known Member Licensed User

    Ok so, in line 33 of DynamicIP.bas, have you already tried to replace
    Code:
    job.Download("http://api.exip.org/?call=ip")
    by
    Code:
    job.Download("http://www.icanhazip.com/")
    (source)
     
  6. Oceaneml

    Oceaneml Member Licensed 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"?
     
  7. Oceaneml

    Oceaneml Member Licensed User

    In fact I am looking, from my smartphone, what is my dynamic IP address of my home PC, via the No-IP website...
     
  8. lemonisdead

    lemonisdead Well-Known Member Licensed User

    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 ?
     
  9. Oceaneml

    Oceaneml Member Licensed 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"
     
  10. lemonisdead

    lemonisdead Well-Known Member Licensed User

    I am sorry. I did not found in their API.
     
Loading...
  1. 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.
    Dismiss Notice