Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts
Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry.

ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Download and Activate to enter!

Web development can be a daunting task, even for specialists. There is a lot of information to absorb and a lot of technologies to learn in order to manage a superior website. When trying to learn the ropes, developers need a reliable source to introduce new ideas that can be easily implemented. When working on large projects, even web veterans may run into a technology or an aspect of a technology that they are unfamiliar with.

Learn More!


Download to Enter
| Contest Rules

Tutorials | Forums

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 9th, 2007, 11:17 AM
SteadyScene SteadyScene is offline
Designer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 258 SteadyScene User rank is Private First Class (20 - 50 Reputation Level)SteadyScene User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 21 h 56 m 52 sec
Reputation Power: 9
Send a message via AIM to SteadyScene Send a message via Yahoo to SteadyScene
Script to Detect IP Address

The company I work for has a xp computer in another region that we use to monitor security cameras for the warehouse.

The problem is the IP address keeps changing and they do not want to purchase a static IP.

The script needs to detect the IP address and then email it to the admin over here daily.

Any help?

Much thanks.

Reply With Quote
  #2  
Old February 9th, 2007, 12:04 PM
tj_nt tj_nt is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Feb 2004
Posts: 2,102 tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 3 Weeks 12 h 25 m 58 sec
Reputation Power: 1765
save the following line as a .bat file

ipconfig > c:\save_ip.txt


this will write a text file with the current IP address to the C drive...

set up a task scheduler to run the .bat file and then e-mail the text file to the remote e-mail address

[edited]
another way to retrieve the data is to run the .bat file then use an FTP client to transfer the file to the other system.

Last edited by tj_nt : February 9th, 2007 at 12:10 PM.

Reply With Quote
  #3  
Old February 9th, 2007, 01:01 PM
SteadyScene SteadyScene is offline
Designer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 258 SteadyScene User rank is Private First Class (20 - 50 Reputation Level)SteadyScene User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 21 h 56 m 52 sec
Reputation Power: 9
Send a message via AIM to SteadyScene Send a message via Yahoo to SteadyScene
Quote:
Originally Posted by tj_nt
save the following line as a .bat file

ipconfig > c:\save_ip.txt


this will write a text file with the current IP address to the C drive...

set up a task scheduler to run the .bat file and then e-mail the text file to the remote e-mail address

[edited]
another way to retrieve the data is to run the .bat file then use an FTP client to transfer the file to the other system.


What if I wanted to get the ip for the router? From that same workstation.

Reply With Quote
  #4  
Old February 9th, 2007, 03:57 PM
tj_nt tj_nt is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Feb 2004
Posts: 2,102 tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level)tj_nt User rank is General 12nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 3 Weeks 12 h 25 m 58 sec
Reputation Power: 1765
if you run ipconfig it will return the local system IP as well as the gateway...which will be the router's IP if the system is patched into the network through a router. This will not do you any good as far as informing you of the IP so you can tunnel into the cams.

What else is the remote system responsible for other than the cams?

Have you considered installing Linux on the remote system?

Reply With Quote
  #5  
Old May 24th, 2007, 01:17 AM
fuquey fuquey is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 1 fuquey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 12 sec
Reputation Power: 0
ISP Dynamic IP

How do I do if I want to detect my ISP provided Dynamic IP?

Reply With Quote
  #6  
Old October 28th, 2008, 06:32 PM
Coder1251 Coder1251 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2008
Posts: 1 Coder1251 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 40 sec
Reputation Power: 0
>>>How do I do if I want to detect my ISP provided Dynamic IP
ISP provided Dynamic IP - it's you external IP.. you can find it here
my-addr.com

Reply With Quote
  #7  
Old November 14th, 2008, 09:36 PM
Lagniappe Lagniappe is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2008
Posts: 39 Lagniappe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 h 32 m 28 sec
Reputation Power: 4
Why wouldn't you use a dynamic dns service like dyndns.com?

http://www.dyndns.com/support/kb/us...os_systems.html

You install a client update applet on the pc and it keeps dyndns current with your camera's IP then you just reference it by name.

Don't know about you, but I get enough email already, I don't need a camera emailing me with it's ip address. And what about the time from ip change until next email? It's ok to be out of touch that long? Finding a balance between email frequency and lag between updates to email would be a pain. And you know the time you need to reach it in a hurry is when it will be changed and not yet emailed.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > Script to Detect IP Address


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 10 - Follow our Sitemap