display ip and ip only of the host computer the script is running on.

ifconfig eth0|grep inet| awk '{print $2}' | cut -d: -f2
172.20.0.8

root@debian9:~# IP=$(ifconfig eth0|grep inet| awk '{print $2}' | cut -d: -f2); echo $IP;
172.20.0.8
admin