Skip to content

Instantly share code, notes, and snippets.

@maciakl
Created January 13, 2022 15:55
Show Gist options
  • Select an option

  • Save maciakl/c13e1879543112aa1ef98267f104335e to your computer and use it in GitHub Desktop.

Select an option

Save maciakl/c13e1879543112aa1ef98267f104335e to your computer and use it in GitHub Desktop.
Get you local ip address from the Windows command line
@echo off
for /f "delims=[] tokens=2" %%a in ('ping -4 -n 1 %ComputerName% ^| findstr [') do set NetworkIP=%%a
echo %NetworkIP%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment