I just use a dynamic DNS service which always resolves me to a hostname.
Bad-a-bing, never any problems accessing my home machine on a dynamic IP. No
delays either (not that I've noticed anyway)

On 24 June 2011 14:31, John Aldrich <[email protected]> wrote:

> Yes, but what do you *do* with that info? I'm in a similar situation where
> I access my machine at home. I'm on a dynamic IP as well, but I run an
> application to update my dynamic DNS entry based on similar information to
> whatismyip.com. Thus, I only have to wait about 15 or 20 minutes after the
> IP changes to be able to access my machine at home again. :D
>
> Sometimes I think my ISP (Windstream) detects a large amount 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:[email protected]]
> 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 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)
> $ip = [System.Text.Encoding]::ASCII.GetString($data)
> $date = get-date
> $writestr = $ip + "," + " " + $date.toshortdatestring() + "," + " " +
> $date.ToShortTimeString()
> add-content C:\somepath\ip.txt $writestr
> On Fri, Jun 24, 2011 at 3:23 AM, Gavin Wilby <[email protected]>
> wrote:
> 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 you want with it
> Set http = Nothing
>
> Execute using
>
> C:\>cscript ip.vbs
>
>
> On Fri, Jun 24, 2011 at 7:59 AM, Oliver Marshall
> <[email protected]> wrote:
> >
> > 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
> >
> >
> >
> >
> >
> > Network Support
> > Online Backups
> > Server Management
> >
> > Tel: 0845 307 3443
> >
> > Email: [email protected]
> >
> > Web: http://www.g2support.com
> >
> > Twitter: g2support
> >
> > Newsletter: http://www.g2support.com/newsletter
> >
> > Mail: 2 Roundhill Road, Brighton, Sussex, BN2 3RF
> >
> >
> >
> > Have you said something nice about us to a friend or colleague ?
> >
> > Let us say thanks. Find out more at www.g2support.com/referral
> >
> >
> >
> > G2 Support LLP is registered at Mill House, 103 Holmes Avenue, HOVE
> >
> > BN3 7LE. Our registered company number is OC316341.
> >
> > ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> > ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
> >
> > ---
> > To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> > or send an email to [email protected]
> > with the body: unsubscribe ntsysadmin
>
> --
> Gavin Wilby,
> Twitter: http://twitter.com/gavin_wilby
> GSXR Blog: http://www.stoof.co.uk
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to [email protected]
> with the body: unsubscribe ntsysadmin
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to [email protected]
> with the body: unsubscribe ntsysadmin
>
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to [email protected]
> with the body: unsubscribe ntsysadmin
>
>


-- 
"On two occasions...I have been asked, 'Pray, Mr Babbage, if you put into
the machine wrong figures, will the right answers come out?' I am not able
rightly to apprehend the kind of confusion of ideas that could provoke such
a question."

****** IMPORTANT INFORMATION/DISCLAIMER *****

This document should be read only by those persons to whom it is addressed.
If you have received this message it was obviously addressed to you and
therefore you can read it, even it we didn't mean to send it to you.
However, if the contents of this email make no sense whatsoever then you
probably were not the intended recipient, or, alternatively, you are a
mindless cretin; either way, you should immediately kill yourself and
destroy your computer (not necessarily in that order). Once you have taken
this action, please contact us.. no, sorry, you can't use your computer,
because you just destroyed it, and possibly also committed suicide
afterwards, but I am starting to digress...... *

* The originator of this email is not liable for the transmission of the
information contained in this communication. Or are they? Either way it's a
pretty dull legal query and frankly one I'm not going to dwell on. But
should you have nothing better to do, please feel free to ruminate on it,
and please pass on any concrete conclusions should you find them. However,
if you pass them on via email, be sure to include a disclaimer regarding
liability for transmission.
*

* In the event that the originator did not send this email to you, then
please return it to us and attach a scanned-in picture of your mother's
brother's wife wearing nothing but a kangaroo suit, and we will immediately
refund you exactly half of what you paid for the can of Whiskas you bought
when you went to Pets** ** At Home yesterday. *

* We take no responsibility for non-receipt of this email because we are
running Exchange 5.5 and everyone knows how glitchy that can be. In the
event that you do get this message then please note that we take no
responsibility for that either. Nor will we accept any liability, tacit or
implied, for any damage you may or may not incur as a result of receiving,
or not, as the case may be, from time to time, notwithstanding all
liabilities implied or otherwise, ummm, hell, where was I...umm, no matter
what happens, it is NOT, and NEVER WILL BE, OUR FAULT! *

* The comments and opinions expressed herein are my own and NOT those of my
employer, who, if he knew I was sending emails and surfing the seamier side
of the Internet, would cut off my manhood and feed it to me for afternoon
tea. *

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

Reply via email to