Get external IP from command line

2011-06-24 Thread Oliver Marshall
Hi chaps Does anyone know of a command line tool that can return the external IP of the machine it's run on? I need to run a script on some machines and need to note the external IP. Olly [cid:personal229.jpg] [cid:g2supportsmall_250x58border4823.png] Network Support Online Backups Server

Re: Get external IP from command line

2011-06-24 Thread Gavin Wilby
Stolen from another website, but this seems to work OK: Create a file named ip.vbs and copy the following into it: Option Explicit Dim http : Set http = CreateObject( MSXML2.ServerXmlHttp ) http.Open GET, http://whatismyip.org;, False http.Send Wscript.Echo http.responseText 'or do whatever

Re: Get external IP from command line

2011-06-24 Thread Richard Stovall
Here's a little Powershell script to accomplish the same thing and write the result out to a history file. I've used this via a scheduled task on my home machine to track when my FIOS ip changes. $url = http://whatismyip.org/; $wc = new-object system.net.webclient $data = $wc.DownloadData($url)

RE: Get external IP from command line

2011-06-24 Thread John Aldrich
, 2011 9:18 AM To: NT System Admin Issues Subject: Re: Get external IP from command line Here's a little Powershell script to accomplish the same thing and write the result out to a history file. I've used this via a scheduled task on my home machine to track when my FIOS ip changes. $url = http

Re: Get external IP from command line

2011-06-24 Thread James Rankin
Admin Issues Subject: Re: Get external IP from command line Here's a little Powershell script to accomplish the same thing and write the result out to a history file. I've used this via a scheduled task on my home machine to track when my FIOS ip changes. $url = http://whatismyip.org/; $wc

RE: Get external IP from command line

2011-06-24 Thread John Aldrich
Yep. DYNDNS.ORG is great. You can also use ZoneEdit and others. From: James Rankin [mailto:kz2...@googlemail.com] Sent: Friday, June 24, 2011 9:36 AM To: NT System Admin Issues Subject: Re: Get external IP from command line I just use a dynamic DNS service which always resolves me

Re: Get external IP from command line

2011-06-24 Thread Richard Stovall
of traffic on my machine and decides to change my IP. Too bad I've figured out a work-around. :D From: Richard Stovall [mailto:rich...@gmail.com] Sent: Friday, June 24, 2011 9:18 AM To: NT System Admin Issues Subject: Re: Get external IP from command line Here's a little Powershell script

RE: Get external IP from command line

2011-06-24 Thread Michael B. Smith
() ) file.txt Regards, Michael B. Smith Consultant and Exchange MVP http://TheEssentialExchange.com From: Richard Stovall [mailto:rich...@gmail.com] Sent: Friday, June 24, 2011 10:09 AM To: NT System Admin Issues Subject: Re: Get external IP from command line Well, what to do with the information

RE: Get external IP from command line

2011-06-24 Thread John Aldrich
. :D From: Richard Stovall [mailto:rich...@gmail.com] Sent: Friday, June 24, 2011 10:09 AM To: NT System Admin Issues Subject: Re: Get external IP from command line Well, what to do with the information is a different question from what the OP asked. I was just offering another method

Re: Get external IP from command line

2011-06-24 Thread Richard Stovall
http://TheEssentialExchange.com http://theessentialexchange.com/ ** ** *From:* Richard Stovall [mailto:rich...@gmail.com] *Sent:* Friday, June 24, 2011 10:09 AM *To:* NT System Admin Issues *Subject:* Re: Get external IP from command line ** ** Well, what to do

RE: Get external IP from command line

2011-06-24 Thread Michael B. Smith
: Richard Stovall [mailto:rich...@gmail.com] Sent: Friday, June 24, 2011 10:35 AM To: NT System Admin Issues Subject: Re: Get external IP from command line I never said that I know what I'm doing with Powershell... :) PS Why do my eyes hurt all of a sudden? On Fri, Jun 24, 2011 at 10:16 AM, Michael

Re: Get external IP from command line

2011-06-24 Thread Richard Stovall
:* Richard Stovall [mailto:rich...@gmail.com] *Sent:* Friday, June 24, 2011 10:35 AM *To:* NT System Admin Issues *Subject:* Re: Get external IP from command line ** ** I never said that I know what I'm doing with Powershell... :) PS Why do my eyes hurt all

Re: Get external IP from command line

2011-06-24 Thread Kurt Buff
] Sent: Friday, June 24, 2011 10:09 AM To: NT System Admin Issues Subject: Re: Get external IP from command line Well, what to do with the information is a different question from what the OP asked.  I was just offering another method of accomplishing the task at hand. When I used

Re: Get external IP from command line

2011-06-24 Thread Kurt Buff
://TheEssentialExchange.com From: Richard Stovall [mailto:rich...@gmail.com] Sent: Friday, June 24, 2011 10:35 AM To: NT System Admin Issues Subject: Re: Get external IP from command line I never said that I know what I'm doing with Powershell... :) PS  Why do my eyes hurt all

Re: Get external IP from command line

2011-06-24 Thread Richard Stovall
MVP http://TheEssentialExchange.com http://theessentialexchange.com/ From: Richard Stovall [mailto:rich...@gmail.com] Sent: Friday, June 24, 2011 10:35 AM To: NT System Admin Issues Subject: Re: Get external IP from command line I never said that I know what I'm doing

Re: Get external IP from command line

2011-06-24 Thread Kurt Buff
On Fri, Jun 24, 2011 at 10:02, Richard Stovall rich...@gmail.com wrote: If you can get it to work, the beauty of whatismyip.org is that there is absolutely no extraneous stuff to parse out and get rid of.  As you've seen, whatismyip.com has got all kinds of content that is probably dynamic, and

RE: Get external IP from command line

2011-06-24 Thread John Aldrich
There are other websites as well..such as showmyip.com which may or may not work better for your purposes. -Original Message- From: Kurt Buff [mailto:kurt.b...@gmail.com] Sent: Friday, June 24, 2011 12:46 PM To: NT System Admin Issues Subject: Re: Get external IP from command line

Re: Get external IP from command line

2011-06-24 Thread Ben Scott
On Fri, Jun 24, 2011 at 1:02 PM, Richard Stovall rich...@gmail.com wrote: If you can get it to work, the beauty of whatismyip.org is that there is absolutely no extraneous stuff to parse out and get rid of. Indeed. Thanks for that one. Here's another one-liner: wget -q

RE: Get external IP from command line

2011-06-24 Thread Michael B. Smith
, 2011 2:37 PM To: NT System Admin Issues Subject: Re: Get external IP from command line On Fri, Jun 24, 2011 at 1:02 PM, Richard Stovall rich...@gmail.com wrote: If you can get it to work, the beauty of whatismyip.org is that there is absolutely no extraneous stuff to parse out and get rid

Re: Get external IP from command line

2011-06-24 Thread Ben Scott
On Fri, Jun 24, 2011 at 2:41 PM, Michael B. Smith mich...@smithcons.com wrote: While I personally have it, since I'm a heavy user of MinGW, I bet 99% of Windows users don't have wget. ;-) Oh, to be sure. But they should. ;-) -- Ben ~ Finally, powerful endpoint security that ISN'T a

Re: Get external IP from command line

2011-06-24 Thread Richard Stovall
LOL. My original, original script used wget -O - -q until I figured out how to do it completely within powershell. On Fri, Jun 24, 2011 at 2:42 PM, Ben Scott mailvor...@gmail.com wrote: On Fri, Jun 24, 2011 at 2:41 PM, Michael B. Smith mich...@smithcons.com wrote: While I personally have

Re: Get external IP from command line

2011-06-24 Thread Andrew S. Baker
] Sent: Friday, June 24, 2011 2:37 PM To: NT System Admin Issues Subject: Re: Get external IP from command line On Fri, Jun 24, 2011 at 1:02 PM, Richard Stovall rich...@gmail.com wrote: If you can get it to work, the beauty of whatismyip.org is that there is absolutely no extraneous stuff

Re: Get external IP from command line

2011-06-24 Thread Angus Scott-Fleming
On 24 Jun 2011 at 18:41, Michael B. Smith wrote: While I personally have it, since I'm a heavy user of MinGW, I bet 99% of Windows users don't have wget. ;-) There's a Win32 port, pretty lean. I use it all the time. -- Angus Scott-Fleming GeoApps, Tucson, Arizona 1-520-290-5038 Security

Re: Get external IP from command line

2011-06-24 Thread Jonathan Link
It and putty are the #1 and #2 utilities that follow me from workstation to workstation. On Fri, Jun 24, 2011 at 7:33 PM, Angus Scott-Fleming angu...@geoapps.comwrote: On 24 Jun 2011 at 18:41, Michael B. Smith wrote: While I personally have it, since I'm a heavy user of MinGW, I bet 99% of