---
schema_version: "1"
id: 47b777cd0427633c9ed1c9382df2693a720f02a234a4c79d05d72dd516da29a0
title: 可選：設定用戶端 IP 相符
collection: tableau
version: current
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/current/zh-tw/server/trusted_auth_optional.md
canonical_url: https://help.tableau.com/current/server/zh-tw/trusted_auth_optional.htm
source_site: help.tableau.com
content_type: documentation
content_hash: d2c6a90337bf9f0cbd33940dbc3756e9ea17a716e470a9885ab16ce92dab8dd2
description: Configure client IP matching for trusted authentication.
---
[跳至主要內容](#main-content)

# 可選：設定用戶端 IP 相符

預設情況下，Tableau Server 在建立或兌換票證時不考慮用戶端 Web 瀏覽器的 IP 位址。若要對此進行變更，需要執行以下兩個操作：在獲取票證的 POST 請求中，使用 `client_ip` 參數指定一個 IP 位址，然後執行下面的步驟以設定 Tableau Server，以便強制用戶端 IP 位址相符。

1. 開啟 TSM CLI 並輸入以下命令：
    
    tsm configuration set -k wgserver.extended\_trusted\_ip\_checking -v true
2. 然後鍵入以下命令：
    
    tsm pending-changes apply 
    
    如果擱置組態需要重新啟動伺服器，`pending-changes apply` 命令將顯示提示，讓您知道即將重新啟動。即使伺服器已停止，也會顯示提示，但在這種情況下不會重新啟動。您可以使用 `--ignore-prompt` 選項隱藏提示，但這樣做不會改變重新啟動行為。如果變更不需要重新啟動，則不會出現提示即可套用變更。有關詳情，請參閱 [tsm pending-changes apply](https://help.tableau.com/current/server/zh-tw/cli_pending-changes.htm#pending-changes-apply)。