![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.tcl archiveHow to obtain current IP address?
From: Bob Halpin <bhalpin@attglobal.net>
Date: Fri Sep 30 2005 - 09:06:58 CEST
Here's the situation:
A machine is connected to the net via dynamic IP address.
Periodically, I want that machine to check it's current IP#, and if it
So, how do you find out your current IP# via Tcl?
The following is my first kick at the can. Using example code from Brent
- uses the http package to fetch www.whatismyip.com
- parses the page to extract the IP#
When the laughter dies down I would be very interested in any more
Thank's in advance.
Bob Halpin
--------------- Source -----------------
package require http;
proc extract_ip {Src} {
-------------------------------------------------------
|