Watch the video:
Timestamps:
0:00 - Explanation
0:22 - Normal method (ipconfig)
0:56 - Simplifying/Searching ipconfig (findstr)
1:56 - Searching for multiple lines
2:28 - Linux Grep example
Ever wanted to use Grep in the Windows CMD or just display lines that contain text? Well, this video shows you the basic usage of findstr, a simple tool to search output from a command and display exactly what you want to see. As an example, you can show JUST your IP address and the router’s IP address for easy reference when port forwarding, etc.
ipconfig | findstr /i “ipv4”
ipconfig | findstr /i “gateway”
ipconfig | findstr /i “ipv4 gateway”