On Monday, January 5, 2004, at 03:51 PM, Stephan Hochhaus wrote:
Is there a way to read out my WAN IP address in Mac OS X (maybe extract it from a logfile) and write it to a file?
I am sorry if this is too basic a question, I just started my long journey to become a Perl monger.

Hi Stephan,


Your mac doesn't actually know its WAN address. That information is contained in the router (I'm guessing it's a cable/DSL modem or similar). So to obtain it without using one of those echo-HTTP sites, you'll have to talk to the router.

At http://www.dyndns.org/services/dyndns/clients.html , you'll find zillions of programs whose job it is to do exactly that.

-Ken

Reply via email to