PublicIPAddress

1.0

PublicIPAddress is a PowerShell module for querying public IPv4/IPv6-address and save the IP-address to a file. Optionally can also create a scheduled task to do this periodically.

Most Internet-connections, especially wireless connections have dynamic IP-address that will change at times.

As such it may prove to be challenging to remotely connect to your comput
PublicIPAddress is a PowerShell module for querying public IPv4/IPv6-address and save the IP-address to a file. Optionally can also create a scheduled task to do this periodically.

Most Internet-connections, especially wireless connections have dynamic IP-address that will change at times.

As such it may prove to be challenging to remotely connect to your computer from the Internet. One of the most popular ways to address the issue is to use a service such as DynDNS which provices a static hostname, eg myhomecomputer.domain.net.

But unless you actually need to use a static hostname, an alternative way is to leverage Dropbox, OneDrive, Google Drive or similar cloud service to store public IP-address of your computer in a file.

All you need is a way to periodically check current public IP-address and save that to a file located in a directory that will be synced to a cloud service, which you can then read on your phone or any other computer with access to the Internet.

This PowerShell module provides a function to check current public IP-address and write the IP-address to a file in specified directory. In addition to this, a scheduled task can be created to do this periodically.

If you intend to use a scheduled task, this module should be installed to %systemdrive%:\Program Files\WindowsPowerShell\Modules. Otherwise LOCAL SERVICE account cannot find this module and use its functions.

When installing this module from the PowerShell Gallery, use "Install-Module -Name PublicIPAddress -Scope AllUsers" in order to install the module to Program Files.

Queries for IP-address should be limited to no more than once per five minutes. Otherwise your queries my be dropped.
Show more

Minimum PowerShell version

3.0

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name PublicIPAddress -RequiredVersion 1.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name PublicIPAddress -Version 1.0

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2016 Juho Lehto. All rights reserved.

Package Details

Author(s)

  • Juho Lehto

Tags

IPv4 IPv6 IP IP-address

Functions

Get-PublicIPAddress Save-PublicIPAddress

Dependencies

This module has no dependencies.

FileList

Version History

Version Downloads Last updated
1.1.1 1,412 11/24/2016
1.1 21 11/24/2016
1.0 (current version) 27 11/23/2016