automatically add private and public ips