w.puts ip

will get you the same thing w/a lot less clutter