Geektool Geektool script to display external ip address of 2 ISPs

Discussion in 'UI Customization' started by AleRod, Mar 28, 2014.

  1. AleRod, Mar 28, 2014
    Last edited: Mar 29, 2014

    AleRod macrumors newbie

    Joined:
    Sep 1, 2011
    #1
    The next code displays the external ip of 1 ISP.

    Code:
    curl ipecho.net/plain; echo

    Is there any code to display the external ip of 2 ISPs?

    My mac mini is connected to 2 internet providers.
    One in en0 via ethernet and the other one in en3 via USB ethernet.

    Any help appreciated. Thank you.
     
  2. AleRod thread starter macrumors newbie

    Joined:
    Sep 1, 2011
    #2
    I found my answer in another site.
    I post it in case anyone also needs it. :)

    for my ISP1 en0
    Code:
    curl ipecho.net/plain; echo
    for my ISP2 en3
    Code:
    curl --interface en3 ipecho.net/plain; echo

    Hope it helps :p
     

Share This Page