In MacOs I used the below command to get the machine local ip address
echo $(/usr/sbin/ipconfig getifaddr en0)
I can also set this IP address into a variable like this as well
export DISPLAY=$(/usr/sbin/ipconfig getifaddr en0)
Similarly like the above how can I get and set the ip address of Windows 10. If I execute ipconfig it prints many things but I need only the local ip address