Created
February 6, 2019 15:29
-
-
Save eldenis/415b8094a7918761f498e049948cfda4 to your computer and use it in GitHub Desktop.
Get current IP addresses in Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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