hostname -I | cut -d' ' -f1
for local ip : hostname -I for Public ip : curl icanhazip.com
#In windows terminal, type: ipconfig #You will see your computer ipv4 and other info