Lumaktaw sa pangunahing nilalaman

I-configure ang proxy gamit ang IP address sa Windows

Ipinapaliwanag ng gabay na ito kung paano palitan ang proxy DNS hostname (hal., proxy.company.com) ng IP address nito sa Windows, gamit ang alinman sa GUI o PowerShell.

Kapaki-pakinabang ang paraang ito sa mga sitwasyong kung saan:

  • Naka-block o hindi maaasahan ang DNS resolution
  • Nakaaapekto sa performance ang network latency o mga isyu sa certificate trust
  • Dapat limitahan ang access sa mga partikular na IP address (egress control)

Manwal na paraan (Internet Options)

  1. Buksan ang Control PanelInternet Options
  2. Pumunta sa tab na Connections
  3. I-click ang LAN Settings
  4. Under Proxy server, enable the checkbox:
    • Palitan ang proxy.company.com ng proxy IP mo (hal., 192.168.1.10)
    • Itakda ang port (karaniwan ay 8080)
  5. 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"


# 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