ibmcloud apiconnect get ip code example
Example 1: get ip address linux
curl ifconfig.me
Example 2: get ip of mac
Use for wireless
ipconfig getifaddr en1
or for ethernet
ipconfig getifaddr en0
ipconfig getifaddr en0 is default for wifi interface.