Palitan ang proxy address mula DNS name papuntang IP sa Windows
Ipinapaliwanag ng gabay na ito kung paano palitan ang proxy DNS hostname (hal.,proxy.company.com) ng isang raw IP address sa Windows, parehong mano-mano at gamit ang PowerShell.
Kapaki-pakinabang ito sa mga environment kung saan:
- Hindi maaasahan o naka-block ang DNS resolution
- Nagkakaroon ng mga isyu sa certificate trust o network latency
- Kailangan ang tahasang access control na nakabatay sa egress IP
Manwal na paraan (Internet Options)
- Buksan ang Control Panel → Internet Options.
- Pumunta sa tab na Connections.
- I-click ang LAN Settings.
- Under Proxy server, enable the checkbox:
- Palitan ang
proxy.company.comng proxy IP mo (hal.,192.168.1.10) - Itakda ang port (karaniwan ay
8080)
- Palitan ang
- I-click ang OK, pagkatapos ay Apply.
Malalapat ito sa karamihan ng mga application na gumagamit ng WinINET proxy stack (hal., Internet Explorer, Microsoft Edge Legacy, Office apps).
Scripted na paraan (PowerShell)
Gamitin ang PowerShell script na ito para i-configure ang parehong WinHTTP at WinINET proxy settings gamit ang IP address:
# Define proxy IP and port
$proxyIP = "http://192.168.1.10:8080"
# List of domains to bypass proxy
$bypassList = "localhost;127.0.0.1;*.microsoftonline.com;*.core.windows.net"
# Configure proxy for WinHTTP (used by system services like Intune, Windows Update)
netsh winhttp set proxy $proxyIP ";$bypassList"
# Configure proxy for WinINET (used by most user apps and browsers)
$regPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
Set-ItemProperty -Path $regPath -Name ProxyEnable -Value 1
Set-ItemProperty -Path $regPath -Name ProxyServer -Value $proxyIP
Set-ItemProperty -Path $regPath -Name ProxyOverride -Value $bypassList