how to connect to an ip address using 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