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