Sets public ip.