1: 2: 3: 4:
::discover the local IP :LOCALIP for /f "tokens=2* delims=:" %%a in ('ipconfig ^| find "IP Address"') do set LOCALIP=%%a echo %localip%