If you are in a DHCP situation and find your IP address frequently changing, here is an easy way to determine it:
ipconfig getifaddr en0
and an alternate (albeit more convoluted method):
ifconfig en0 inet | grep 'inet ' | awk '{print $2}'
If you are behind a router and need your external IP...