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.

  2. agraham

    agraham Expert Licensed User

  3. jeterry

    jeterry Member Licensed User


    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:
        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.
    Dismiss Notice