Get IP from computer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Chris62651
    Forum Member
    • Nov 2007
    • 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.
  • jassing
    Indigo Rose Customer
    • Jan 2001
    • 3124

    #2
    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);

    Comment

    Working...
    X