Actually all the network interface commands are working with local IP address.
If you want to catch the valid IP address (internet routable) you better use an online IP information service.
Example:
http://www.ip-api.com/json
Actually all the network interface commands are working with local IP address.
If you want to catch the valid IP address (internet routable) you better use an online IP information service.
Example:
http://www.ip-api.com/json