Skip to content
/ IpSpy Public

IpSpy runs as a service and sends email with external ip of a machine

License

Notifications You must be signed in to change notification settings

feeleen/IpSpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

IpSpy

IpSpy runs as a service and sends email with external/public ip of a machine (if ip has changed for some reasons).

The main purpose of this service is to know external/public ip of the remote pc, so then you can start it using WOL (wake on lan) feature or connect to it via remote desktop (if your ps doesn't have static ip)

Configuration is simple through appsettings.json file:

"IpSpy": {
        "IPProviderHost": "http://ipinfo.io/ip", //any web site that gives clean ip string only (https://icanhazip.com/, http://ipinfo.io/ip etc.)
        "CheckInterval": 5, //minutes
        "SMTP": {
            "Login": "mygmail@gmail.com",
            "Password": "pass",
            "Port": 1323,
            "Host": "smtp.gmail.com",
            "EnableSSL": "True"
        },
        "Email": {
            "To": "me@mail.com",
            "Subject": "my-ip",
            "BodyFormat": "{0}"
        }
    }

Installation

install service with standard .net utilities

install with sc.exe:

sc create IpSpyService binpath= "C:\Path\To\IpSpy.exe" start= auto

and then

sc start IpSpyService

About

IpSpy runs as a service and sends email with external ip of a machine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published