在防火牆或 Proxy 伺服器後方安裝及使用 Visual Studio for MacInstall and use Visual Studio for Mac behind a firewall or proxy server

如果您或組織使用防火牆或 Proxy 伺服器等安全性措施,將會有您應該新增至「允許清單」的網域,以及應該開啟的連接埠和通訊協定,以確保您能在安裝及使用 Visual Studio for Mac 及 Azure 服務時取得最佳體驗。If you or your organization uses security measures such as a firewall or a proxy server, then there are domains that you might want to add to an "allow list" and ports and protocols that you might want to open so that you have the best experience when you install and use Visual Studio for Mac and Azure Services.

  • 安裝 Visual Studio for Mac:這些表格包含必須允許連線的網域,讓您能夠存取 Visual Studio for Mac 的所有功能和工作負載。Install Visual Studio for Mac: These tables include the domains that must allow connectivity so that you have access to all features and workloads of Visual Studio for Mac.

  • 使用 Visual Studio for Mac:這些表格包含必須允許連線的網域,讓您可以存取相關的功能。Use Visual Studio for Mac: These tables include domains that must allow connectivity so that you have access to the related features.

安裝 Visual Studio for MacInstall Visual Studio for Mac

因為 Visual Studio for Mac 安裝程式會從各網域和下載伺服器下載,以下是您可能要在設定中新增為信任的網域和 URL。Because the Visual Studio for Mac Installer downloads from a various domains and download servers, here are the domains and URLs that you may want to add as trusted in your configurations.

Microsoft 網域Microsoft domains

網域Domain 目的Purpose
*.live.com*.live.com 認證管理Credential Management
app.vssps.visualstudio.comapp.vssps.visualstudio.com 安裝程式中繼資料Installer Metadata
vortex.data.microsoft.comvortex.data.microsoft.com 當機與錯誤報告Crash and Error Reporting
az667904.vo.msecnd.netaz667904.vo.msecnd.net 當機與錯誤報告Crash and Error Reporting
xamarin.comxamarin.com 安裝程式中繼資料Installer Metadata
xampubdl.blob.core.windows.netxampubdl.blob.core.windows.net 安裝程式套件Installer Packages
download.visualstudio.microsoft.comdownload.visualstudio.microsoft.com 安裝程式套件Installer Packages
xamarin.azureedge.netxamarin.azureedge.net 安裝程式套件Installer Packages
developer.xamarin.comdeveloper.xamarin.com 安裝程式套件Installer Packages
static.xamarin.comstatic.xamarin.com 安裝程式套件Installer Packages
dl.xamarin.comdl.xamarin.com 安裝程式套件Installer Packages
dc.services.visualstudio.comdc.services.visualstudio.com 當機報告Crash Reporting

協力廠商網域Third party domains

網域Domain 目的Purpose
dl.google.comdl.google.com Android SDKAndroid SDK
download.oracle.comdownload.oracle.com Java SDKJava SDK
api.apple-cloudkit.comapi.apple-cloudkit.com Apple 安全性服務Apple Security Services

使用 Visual Studio for MacUse Visual Studio for Mac

為了確保您在 Proxy 或防火牆後方時,可以存取您在 Visual Studio for Mac 中所需的每一個功能,我們建議您將下列網域與連接埠加入允許存取清單。To make sure that you have access to every feature that you need in Visual Studio for Mac while behind a proxy or firewall, we recommend adding the following domains and ports to the allowed-access list.

一般General

DomainDomain 連接埠Port(s) 目的Purpose
go.microsoft.comgo.microsoft.com 80/44380/443 Microsoft URL 解析Microsoft URL Resolution
vsstartpage.blob.core.windows.netvsstartpage.blob.core.windows.net 80/44380/443 起始頁資料Start Page Data
software.xamarin.comsoftware.xamarin.com 80/44380/443 更新程式服務Updater Service
addins.monodevelop.comaddins.monodevelop.com 80/44380/443 擴充服務Extension Services
visualstudio-devdiv-c2s.msedge.netvisualstudio-devdiv-c2s.msedge.net 80/44380/443 實驗性功能與通知Experimental Feature and Notifications
targetednotifications.azurewebsites.nettargetednotifications.azurewebsites.net 80/44380/443 用來將通知全域清單篩選為僅適用於特定電腦/使用方式情節類型的清單Used to filter a global list of notifications to a list that is applicable only to specific types of machines/usage scenarios

身分識別Identity

DomainDomain 連接埠Port(s) 目的Purpose
login.microsoftonline.comlogin.microsoftonline.com 80/44380/443 身分識別提供者Identity Provider
secure.aadcdn.microsoftonline-p.comsecure.aadcdn.microsoftonline-p.com 80/44380/443 身分識別提供者Identity Provider
dc.services.visualstudio.comdc.services.visualstudio.com 80/44380/443 當機報告Crash Reporting
management.azure.commanagement.azure.com 80/44380/443 Azure 服務 APIAzure Services API

NuGetNuGet

DomainDomain 連接埠Port(s) 目的Purpose
api.nuget.orgapi.nuget.org 80/44380/443 NuGet APINuGet API
secure.aadcdn.microsoftonline-p.comsecure.aadcdn.microsoftonline-p.com 80/44380/443 身分識別提供者Identity Provider

Android 專案Android projects

網域Domain 目的Purpose
time.android.comtime.android.com Android Emulator 的時間伺服器Time Server for Android Emulator
connectivitycheck.gstatic.comconnectivitycheck.gstatic.com Android Emulator 的連線Connectivity for Android Emulator
cloudconfig.googleapis.comcloudconfig.googleapis.com Android Emulator 的 APIAPIs for Android Emulator

另請參閱See also