How do you find out your computer's IP address windows command prompt code example

Example 1: how to know the ip address of my pc using cmd

ipconfig/all

Example 2: check ip address using cmd

@echo off
setlocal
mode con:cols=110 lines=30

:start
cls

set /p localWireless=add adb local wireless usb ip address ? &
echo %localWireless% | findstr /i /r [A-za-z]
cls

if %errorlevel% equ 1 (
  msg %username% 'ip address is valid'
  goto start
) else (
  msg %username% 'ip address is not valid'
  goto start
)

pause
goto start

Tags:

Misc Example