ubuntu get external ip
curl -s https://checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
ubuntu get external ip
curl -s https://checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
ubuntu server set static ip
/* Manual Configuration */
#open the /etc/network/interfaces file
` vim /etc/network/interfaces`
#add
iface enp0s3 inet static
address `your ip 10.0.1.20/24`
gateway '10.0.1.1`
dns-nameservers 8.8.8.8
#restart the server to apply changes
`sudo systemctl restart`
#verify
`ip a`
`ping google.com`
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us