How To Get IP Address In PowerShell (Private & Public)
Whenever your computer is connected to a network or the Internet, your device will have two IP addresses—the public IP address and the private IP address.
Network Adapter Configuration Get Private Preferred Address State Valid Lifetime Command Prompt Default Gateway
Source: technewstoday.com