moved getLocalIP