how to find your ip address in mac code example
Example 1: find your computer mac address
type on command -> ipconfig/all
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.