>> It turns out that it is not hard to get the Airport Extreme Base Station 
>> external address:
>> 
>> [mbp:]$ snmpwalk -Ov -OQ -c public router ipAdEntAddr
>> 76.177.12.46
>> 127.0.0.1
>> 127.0.0.2
>> 169.254.162.44
>> 192.168.1.1
> 
> Except that this isn't the proper answer to your question at all. Nor are you 
> going to be able to reliably use this either. 
> 

I think it's fairly clever to use snmpwalk, with the result piped through

egrep -v 
'^127\.0\.0.|^169\.254\.|^172\.3[0-1]\.|^172\.2[0-9]\.|^172\.1[6-9]\.|^192\.168\.|^224\.|^2[45][0-9]\.|^10\.'
 

it should be OK in normal configurations and to me it's a better solution, than 
using whatismyip.com because:

a) more robust, you are not at the mercy of another entity, which is not 
legally required to provide this service 24/7 at no cost for eternity
b) more paranoid, whatismyip.com won't "log" him
c) more lightweight, technologically better, faster, just local network 
traffic, less network traffic

Ciao
   Nat!
---------------------------------------------------------
Wer nichts weiß, muss viel glauben -- H. Kaminski 

_______________________________________________
MacOSX-admin mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/macosx-admin

Reply via email to