Go Back   WhatIsMyIP.comŽ Forum > IP and Network Questions > IP Questions


IP Questions Post all of your general IP related questions here.

Closed Thread
Thread Tools Display Modes
Old 12-06-2009, 04:22 PM   #1
Join Date: Dec 2009
Posts: 2
IPFreely is on a distinguished road
Default Public IP adress from command line

Hi folks,

I'm setting up a security system on my netbook and have come up against a wee problem. I've got a stealth webcam program that starts up with windows and emails images following a motion dection process. There's a timestamp on the option for the image but I'm trying to set up an IP stamp (which is not a default option).

So far I have a batch file set up with the following command:

ipconfig | find "IP Address" > "C:\Program Files\Yawcam\extravars\{ip}.txt"

The problem that's come to my attention is that as I'm currently connected to the internet via another PC (home network) all I'm getting is the internal network IP address. It occurs to me that if the blackguard who will potentially steal my beloved netbook does the same or connects via a router, the IP address stamp becomes redundant in terms of getting a rough fix on their location.

I've had a good look around for a solution, I have a rough idea of where to go from here but am lacking the finesse to achieve my aims.

There are a few questions I'm seeking answers to:

1) Is there a command that will return the public IP regardless of what type of network/router I am connecting through?
2) Can I pull the IP information provided by the main page on a site like this one using a batch file?
3) The webcam program is somehow able to identify the public IP and has it saved in it's settings file, can I extract that data from the settings .xml file?
IPFreely is offline  
Old 12-06-2009, 06:07 PM   #2
Super Moderator
clanmills's Avatar
Join Date: Jul 2008
Location: San Jose, CA
Posts: 183
clanmills has a spectacular aura aboutclanmills has a spectacular aura aboutclanmills has a spectacular aura about
Send a message via MSN to clanmills Send a message via Skype™ to clanmills

Hi F (again):

I have a (free) account with dyndns.org and registered the name clanmills.homedns.org. So I can always obtain my network's WAN address by pinging that name (there's client software running to tell dyndns.org when my IP changes).

I suggest you use the exiv2 library (or exiv2 application) to embed this information into the image.


Last edited by clanmills; 12-06-2009 at 06:09 PM.
clanmills is offline  
Closed Thread


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 07:47 AM.

What Is My IP

Join WhatIsMyIP.com on Facebook Follow WIMI on Twitter

Need IP address location detection service? Get it from IP2Location.com now.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright - WhatIsMyIP.comŽ