Unless cat is outputting a blank line (which it doesn't, from my experience with it), it has to be wget, because cat outputs the IP on the second line, and wget is the only thing before it.
@code: /test
EDIT -
Wow.
joe@JoeMomma:~/dev/java/rps $ getip
172.129.223.201