get local ip for ufw setup