Add get_ip method.

It doesn't work on Fusion 5, but it would be great if you can merge it.