
# Check Internal IP
internalip=$(hostname -I)
echo -e '\E[32m'"Internal IP :" $reset $internalip

# Check External IP
externalip=$(wget -4qO- "http://whatismyip.akamai.com/")
echo -e '\E[32m'"External IP : $reset "$externalip