주요 콘텐츠로 건너뛰기

IP 주소를 사용하여 Windows에서 프록시 구성

This guide explains how to replace a proxy DNS hostname (e.g.,proxy.company.com) with its IP address on Windows, using either the GUI or PowerShell.

이 접근 방식은 다음과 같은 상황에서 유용합니다:

  • DNS 확인이 차단되었거나 신뢰할 수 없는 경우
  • 네트워크 지연 또는 인증서 신뢰 문제가 성능에 영향을 미치는 경우
  • 특정 IP 주소로만 액세스를 제한해야 하는 경우(egress control)

수동 방법 (Internet Options)

  1. Control PanelInternet Options을 엽니다
  2. Connections 탭으로 이동합니다
  3. LAN Settings를 클릭합니다
  4. Under Proxy server, enable the checkbox:
    • proxy.company.com을 프록시 IP(예: 192.168.1.10)로 바꿉니다.
    • 포트(일반적으로 8080)를 설정합니다.
  5. OK를 클릭한 다음 Apply를 클릭합니다

이 설정은 WinINET 프록시 스택을 사용하는 대부분의 애플리케이션(예: Internet Explorer, Microsoft Edge Legacy, Office 앱)에 적용됩니다.


스크립트 방식 (PowerShell)

이 PowerShell 스크립트를 사용하여 IP 주소로 WinHTTPWinINET 프록시 설정을 모두 구성합니다:

# 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