Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

AleRod

macrumors newbie
Original poster
Sep 1, 2011
29
23
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.
 
Last edited:

AleRod

macrumors newbie
Original poster
Sep 1, 2011
29
23
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
 
  • Like
Reactions: fhall1
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.