Pass and set ip addr.