Steven D'Aprano <[EMAIL PROTECTED]> wrote: >I have a PC behind a firewall, and I'm trying to programmatically >determine the IP address visible from outside the firewall. > [ ... ] >Can anyone help me fix that code snippet, or suggest another (better) way >to get the externally visible IP address?
Depending on your circumstances, it may be possible to just ask the firewall. You'll probably need some kind of administrator login, and may well have to parse HTML if it's only got a web interface, but it does mean that you don't have to connect to anything in the outside world. -- \S -- [EMAIL PROTECTED] -- http://www.chaos.org.uk/~sion/ ___ | "Frankly I have no feelings towards penguins one way or the other" \X/ | -- Arthur C. Clarke her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
-- http://mail.python.org/mailman/listinfo/python-list