Re: How to obtain current IP address?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: How to obtain current IP address?

From: Ray <ray.mosley@gmail.com>
Date: Fri Sep 30 2005 - 16:10:06 CEST

I was going to say just exec ipconfig, but searching the wiki page that
Bryan provided shows:

set myip [regexp -inline {\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}} [exec
ipconfig] ]

However, read the wiki. That MAY not be the answer you want.
Received on Sat Oct 15 03:53:53 2005