Project Description
IpSpy is a Windows Service Application that checks External IP address and if it changed, IpSpy sends Email with new IP to specified email address via SMTP

IP check occurs every hour by default

Configuration is simple through app.config file:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <appSettings>
	<add key="IPProviderHost" value="http://ip-spy.org/"/>
	
	<add key="SMTP.Login" value="mymail@gmail.com"/>
	<add key="SMTP.Password" value="mypass"/>
	<add key="SMTP.Port" value="587"/>
	<add key="SMTP.Host" value="smtp.gmail.com"/>
	<add key="SMTP.EnableSSL" value="True"/>

	<add key="Log.FileName" value="C:\IpSpy.log"/>

	<add key="Email.To" value="to@gmail.com"/>
	<add key="Email.Subject" value="my-ip"/>
	<add key="Email.BodyFormat" value="{0}"/>
  </appSettings>
</configuration>



Installation

install service with standard .net utilities:
installutil.exe (%WINDIR%\Microsoft.NET\Framework\v2.0.50727\installutil.exe)
or
sc.exe

Last edited Sep 7, 2012 at 10:01 PM by woohoo, version 6