how to check ip address code example
Example 1: my ip windows
Search -> Write:cmd-> command:ipconfig
Example 2: my ip
Always make sure not to give your public IP address to anyone who you DON'T trust
Example 3: how to find ip address
import java.net.InetAddress;
import java.net.UnknownHostException;
public class FindIPaddress {
public static void main(String[] args) throws UnknownHostException {
InetAddress a = InetAddress.getLocalHost();
System.out.println(a.getHostAddress());
}
}
Example 4: 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