Android Question Obtain in B4A the IP address of a domain

Discussion in 'Android Questions' started by manuelsalazar, Aug 24, 2019.

  1. manuelsalazar

    manuelsalazar Member Licensed User

    Hi:. How can obtain the IP address in B4A of a domain name ?


    Thanks
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    What do you need it for?
    Socket.ResolveHost will do it however it is deprecated as it does it on the main thread and will only work if you disable the network on main thread check.
    In most cases it is not needed as the host will be resolved automatically.
     
  3. manuelsalazar

    manuelsalazar Member Licensed User

    I mean , in the jrdc2 client to use remote internet server connection using an dynamic IP , and the service of no-ip,dyndns, etc???
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    You don't need it and it will not help in any way.

    The host will be resolved internally.
     
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