Q:

How to get network ip address via windows command prompt?

How to get network ip address via windows command prompt? I know tat ipconfig /all shows ip configuration, but what about having just ipv4 adress?

A:

You can view all the configured IP addresses using this command:
netsh interface ip show address | findstr "IP Address"
You can also add the adapter name to get IP address of a specific network interface.
netsh interface ip show address "Ethernet" | findstr "IP Address"
This should work in at least latest versions of Windows.

A:

I wrote a proper ip4 command out of similar frustration.
ip4
(.exe is here)

