Can some one tell me how to display the local ip-address and subnet mask of pimatic?
Thanks Hans
How to get local ip-address and subnet mask of pimatic
Can some one tell me how to display the local ip-address and subnet mask of pimatic?
Thanks Hans
Solved it myself
All ip-adresses (wifi and lan):
ifconfig | sed -En ‘s/127.0.0.1//;s/.inet (addr:)?(([0-9].){3}[0-9])./\2/p’
ip-address only lan
ifconfig eth0|grep 'inet '|awk ‘{print $2}’
subnet mask
ifconfig eth0|grep 'inet '|awk ‘{print $4}’