Skip to content

Get-PublicIP

SYNOPSIS

Gets your public IP address.

SYNTAX

Get-PublicIP [[-Provider] <Object>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

Gets your public IP address. You can specify a provider to use by using the Provider parameter.

EXAMPLES

EXAMPLE 1

Get-PublicIP

EXAMPLE 2

Get-PublicIP -Provider MyIP

PARAMETERS

-Provider

The provider to use to get the public IP address.

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: IPInfo
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES