Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2007
    Posts
    2

    Get IP from computer

    I am trying to get the IP of a computer and write it to an INI file with some other options. I can't seem to get the IP.

    result = System.GetLANInfo();
    TextFile.WriteFromTable("C:\\MyFile.txt", result, false);

    How would I just narrow down just the IP? Trying to set up INI file with this in it

    server="ip"
    serverport=XX
    timeout=XXX

    And maybe a simple way to insert all that info into a ini file. Thanks.

  2. #2
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by Chris62651 View Post
    result = System.GetLANInfo();
    TextFile.WriteFromTable("C:\\MyFile.txt", result, false);

    How would I just narrow down just the IP? Trying to set up INI file with this in it

    And maybe a simple way to insert all that info into a ini file. Thanks.
    Code:
    local cIP = System.GetLANInfo().IP;
    INIFile.SetValue("Test.ini","Network","IP",cIP);


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

Similar Threads

  1. Is any way to log-off the computer?
    By searcher123 in forum Setup Factory 7.0
    Replies: 3
    Last Post: 06-20-2007, 10:49 PM
  2. Playback Full Computer Screen size
    By Caldane in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 10-05-2004, 10:12 PM
  3. Check if a computer is reachable (ping...)
    By Martin_SBT in forum AutoPlay Media Studio 5.0
    Replies: 13
    Last Post: 01-16-2004, 12:02 PM
  4. Getting the Registered User of the Computer
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-01-2003, 02:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts