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
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
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)
, 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
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
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
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
() ) 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
. :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
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
: 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
:* 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
]
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
://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
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
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
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
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
, 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
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
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
]
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
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
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
24 matches
Mail list logo