getIP Obtain your private and public ip in a .bat file Requisites: Only tested in a machine with Windows 7 Execution: Execute the .bat and you can obtain: Private IP. Public IP: Be careful because the command show a response not authoritative (appears two ips).