User: -
Current IP: -
Modified by: -
Endpoint: -
Get IP in Windows (PowerShell):
powershell -Command "(Get-NetIPAddress -AddressFamily IPv4 | Where-Object {$_.InterfaceAlias -notlike '*Loopback*'} | Select-Object -First 1).IPAddress"
Get IP in Mac/Linux (Bash):
hostname -I | awk '{print $1}' || ifconfig | grep -A1 "en0\|eth0" | grep "inet " | awk '{print $2}' | sed 's/addr://'
Source code and documentation