move getIP() to address, fixed #2