how to get ip from cmd code example Example 1: how to know the ip address of my pc using cmd ipconfig/all Example 2: command line ip ipconfig -a