bash.sh
lshw -c network | sed "s/ /\n/gI" | grep -i "ip=" | awk -F= '{print $2}'ip -4 -br a | awk '{print $3}'ip -4 -br a | grep -i "192\.168\.\|10\." | awk '{print $3}'
powershell.ps1
IPv4 / IPv6
[System.Net.Dns]::GetHostAddresses([System.Net.Dns]::GetHostName()) | foreach {write $_.IPAddressToString})[System.Net.Dns]::GetHostAddresses([System.Net.Dns]::GetHostName()) | foreach {write $_.IPAddressToString})[0]
Samo IPv4
[System.Net.Dns]::GetHostAddresses([System.Net.Dns]::GetHostName()) | Where-Object { $_.AddressFamily -eq 'InterNetwork' } | foreach {write $_.IPAddressToString}
batch.cmd
wmic NICCONFIG WHERE IPEnabled=true GET IPAddress
sysinfo hwinfo lanipinfo ipaddress xhwinfo xipinfo xipaddress xsysinfo ip adresa xlan

