+ Reply to Thread
Results 1 to 9 of 9

Thread: Install target IP address

  1. #1

    Default Install target IP address

    Friedrich,

    I searched the forum and found a response from you that SB didn't have a built-in method to get the IP address of the machine where an install is running, but that was back in 2010.

    Have you added that functionality since then? (fingers crossed)

    Thanks,
    Tom H.

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Install target IP address

    Tom,

    the problem is, what is the IP address of the machine where an install is running?

    Today, most computers have more than one network adapter, so potentially more than one IP address. Each adapter may (and will) have multiple IP addresses (e.g. my machine has five different IP addresses), including ones that will probably be useless to you like "127.0.0.1". How do you handle this scenario without SB? Perhaps we can then convert this method to SB script?

    Friedrich

  3. #3
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Install target IP address

    Hi Tom,

    I am playing with some code. Could you please test the following command line tool on your machine(s)?

    http://www.lindersoft.com/projects/getip.zip

    Does it display the expected IP? If yes, then I'll add a built-in function to the SB runtime.

    BTW, it displays this on my machine (see attached screenshot).

    Thanks,
    Friedrich
    Attached Images Attached Images  

  4. #4

    Default Re: Install target IP address

    Friedrich,

    Thanks for looking into this. In a VM it correctly reported the single IP address, on the host it correctly reported all of the adapter addresses for both the virtual and physical adapters that were active.

    I'll check it out on some of the machines as work later today as well. It would be great if it returned the adapter name as well, so that the basic "Local Area Connection" adapter could be identified.

    Tom H.

  5. #5
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Install target IP address

    Hi Tom,

    Thanks for testing! Not sure if the adapter name or MAC address is avaiable (at Winsock level) but I'll see what I can do. On my VM it also reported a single IP address; the five IP addresses are (correctly) returned on my host (Win7 x64 with multiple adapters).

    Friedrich

  6. #6
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Install target IP address

    Tom,

    I have added a new "Local IP Address" operation to the "Get System Info..." script function. This lets you obtain all IP addresses of the target machine including the corresponding MAC addresses. I'll make a test version available soon.

    BTW, checking now if it is possible to retrieve the Adapter name info.

    Friedrich

  7. #7
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Install target IP address

    I think we can retrieve all the required IP/MAC/Adapter information now. We can even use it to get the network connection name (e.g. "Local Area Connection 2").

    Friedrich
    Attached Images Attached Images  

  8. #8
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Install target IP address

    Tom,

    I think the new built-in "Get System Info (Local IP Address Data)" script function is working fine now. We have tested it on several machines (see attached screenshot). I'll make a development release available later today.

    Friedrich
    Attached Images Attached Images  
    Last edited by linder; 06-30-2014 at 08:10 AM.

  9. #9
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Install target IP address

    Hi Tom,

    I have uploaded development build #4413:

    http://www.lindersoft.com/sb8/sb81_4413_Dev.exe

    And this is a GetIPs demo project:

    http://www.lindersoft.com/projects/GetIPs.zip

    Does this work for you?

    Thanks,
    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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