Skip to content

Instantly share code, notes, and snippets.

@eldenis
Created February 6, 2019 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eldenis/415b8094a7918761f498e049948cfda4 to your computer and use it in GitHub Desktop.
Save eldenis/415b8094a7918761f498e049948cfda4 to your computer and use it in GitHub Desktop.
Get current IP addresses in Windows
@echo off
set ip_address_string="IPv4"
for /f "usebackq tokens=2 delims=:" %%f in (`ipconfig ^| findstr /c:%ip_address_string%`) do echo Your IP Address is: %%f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment