prepare to substitute %localip%