update public_address to internal_address