grep ip address

Shell
grep -oE "\b([0-9]{1,3}\.){3}([0-9]{1,3})\b" $file
Source

Also in Shell: