get static ip linux code example
Example 1: get public ip linux
curl ifconfig.me
Example 2: linux set ip static
ip address add 172.16.251.1/24 brd + dev wlan0:0
curl ifconfig.me
ip address add 172.16.251.1/24 brd + dev wlan0:0