livebox

    Obtain WAN ip

    useful to obtain ip without going to internet

    curl -s -X POST -H "Content-Type: application/json" -d '{"parameters":{}}'  http://192.168.1.1/sysbus/NMC:getWANStatus | sed -e 's/.*"IPAddress":"\(.*\)","Remo.*/\1/g'
    

    source