get local ip address
linux
hostname -I | awk '{print $1}'
macos
ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}'
windows
for /f "tokens=14" %a in ('ipconfig ^| findstr IPv4') do echo %a