1. Black Friday Sale - 50% off

    B4A Standard for $29 instead of $59!
    Buy Now
    Dismiss Notice

Help with Device IP address

Discussion in 'Questions (Windows Mobile)' started by jeterry, Jan 14, 2009.

  1. jeterry

    jeterry Member Licensed User

    I have searched all the forum to find out how to get the IP address for the desktop or device using Basic4PPC and so far nothing was found. I have tried the network library and I can tell if I am connect to the server, but I just wanted to display the device IP address to the user so that they know that the device is docked properly, before they attempt to receive or send transmit data to the server.

    Can someone please direct me down the right path.

    Thanks
     
  2. agraham

    agraham Expert Licensed User

  3. jeterry

    jeterry Member Licensed User

    Thanks

    Thanks agraham, that just what the doctor order.:sign0060:
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    You can also find the IP address with the network library:
    Code:
    Server.New1(50000)
        Client.New1
        label2.Text = 
    "My IP: " & Client.GetIP2(Server.HostName)
    The Server object will not listen for connections until you issue Server.Start so there is no loss of resources.
     
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