Fix it so it can find the last ip address.